Last active
May 28, 2018 19:14
-
-
Save gchumillas/220688a63e60fb9161f83dcc96800e44 to your computer and use it in GitHub Desktop.
Cross-Origin Resource Sharing (CORS)
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
| Options -Indexes | |
| <IfModule mod_headers.c> | |
| Header set Access-Control-Allow-Origin http://DOMAIN-NAME.com:PORT | |
| Header set Access-Control-Allow-Credentials true | |
| Header add Access-Control-Allow-Methods: "GET,POST,OPTIONS,DELETE,PUT" | |
| Header add Access-Control-Allow-Headers: "Content-Type" | |
| Header add Access-Control-Allow-Headers: "Authorization" | |
| </IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment