Skip to content

Instantly share code, notes, and snippets.

@antstanley
Created October 5, 2022 23:55
Show Gist options
  • Save antstanley/ec6e9f3b5b8fca088c1e43bb3ead1648 to your computer and use it in GitHub Desktop.
Save antstanley/ec6e9f3b5b8fca088c1e43bb3ead1648 to your computer and use it in GitHub Desktop.
Example of CORS headers for API Gateway with Authorization and Cookies
{
"Access-Control-Allow-Headers":
"Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token, Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Credentials, Cookie, Set-Cookie",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "POST, OPTIONS, GET",
"Access-Control-Allow-Credentials": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment