Created
January 20, 2021 10:01
-
-
Save nahidacm/0fa412539dd9a26c0f7f9488b11363ae to your computer and use it in GitHub Desktop.
Apache headers to avoid 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
Header always set Access-Control-Allow-Origin "http://localhost:3000" | |
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" | |
Header always set Access-Control-Max-Age "1000" | |
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token" | |
Header always set Access-Control-Allow-Credentials true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment