CORS And Responses
Use the gateway CORS block to centralize browser access policy instead of reimplementing it in every upstream. The CORS config defines which origins, methods,
When to use this
Key concepts
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