CORS
Configure CORS (Cross-Origin Resource Sharing) for the Serverless API Gateway. Set allowed origins, methods, headers, and preflight cache.
"cors": {
"allow_origins": [
"https://example.com",
"https://example2.com"
],
"allow_methods": [
"GET",
"POST",
"PUT",
"DELETE"
],
"allow_headers": [
"Content-Type",
"Authorization"
],
"expose_headers": [
"Content-Type",
"Authorization"
],
"allow_credentials": true,
"max_age": 86400
}See Also
Last updated