mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 21:32:58 +00:00
feat: provide options to disable or customize http corss-origin settings (#5450)
* feat: add cors headers for http server * test: add cors test * test: add preflight test * feat: allow customize http cross-origin settings * chore: typo fix * test: update tests * test: fix test for config * refactor: address review comments
This commit is contained in:
@@ -902,6 +902,8 @@ addr = "127.0.0.1:4000"
|
||||
timeout = "30s"
|
||||
body_limit = "64MiB"
|
||||
is_strict_mode = false
|
||||
cors_allowed_origins = []
|
||||
enable_cors = true
|
||||
|
||||
[grpc]
|
||||
addr = "127.0.0.1:4001"
|
||||
|
||||
Reference in New Issue
Block a user