CORS And Responses
Use the gateway CORS block to centralize browser access policy instead of reimplementing it in every upstream.
When to use this
What this does not do
Repo-grounded example
{
"cors": {
"allow_origins": ["https://app.example.com"],
"allow_methods": ["GET", "POST", "OPTIONS"],
"allow_headers": ["Content-Type", "Authorization", "X-Refresh-Token"],
"expose_headers": ["X-Request-Id"],
"allow_credentials": true,
"max_age": 300
}
}Troubleshooting
Related docs
Last updated