Skip to content

Instantly share code, notes, and snippets.

@hashamali
Created August 8, 2018 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hashamali/d8b2c95a9482dee7213f0114db7afb1e to your computer and use it in GitHub Desktop.
Save hashamali/d8b2c95a9482dee7213f0114db7afb1e to your computer and use it in GitHub Desktop.
Elastic Beanstalk CORS Configuration
files:
"/etc/httpd/conf.d/cors.conf" :
mode: "000644"
owner: root
group: root
content: |
<Location "/">
Header set Access-Control-Allow-Origin: "https://YOURURL.IO"
Header set Access-Control-Allow-Methods: "POST, GET, PUT, DELETE, OPTIONS"
Header add Access-Control-Allow-Headers: "Authorization, Content-Type, Accept"
Header set Access-Control-Allow-Credentials: true
SetOutputFilter DEFLATE
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment