Created
August 8, 2018 04:02
-
-
Save hashamali/d8b2c95a9482dee7213f0114db7afb1e to your computer and use it in GitHub Desktop.
Elastic Beanstalk CORS Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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