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:
Ning Sun
2025-01-26 11:55:34 +08:00
committed by GitHub
parent c4d10313e6
commit 698b28c636
11 changed files with 199 additions and 28 deletions

View File

@@ -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"