CORS: Default Preflight Behavior
Rely on the built-in 204 preflight response unless a route truly needs a custom OPTIONS handler.
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