Routing: Explicit OPTIONS Handlers
Add explicit OPTIONS routes when a path needs custom preflight behavior instead of the default CORS 204 response.
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