Created
March 1, 2019 03:57
-
-
Save savepong/07ab2fabafe5e8732767e047db877424 to your computer and use it in GitHub Desktop.
Content-Type is not allowed by Access-Control-Allow-Headers
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('Access-Control-Allow-Origin: *'); | |
header('Access-Control-Allow-Methods: POST,GET,OPTIONS'); | |
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment