Skip to content

Instantly share code, notes, and snippets.

@savepong
Created March 1, 2019 03:57
Show Gist options
  • Save savepong/07ab2fabafe5e8732767e047db877424 to your computer and use it in GitHub Desktop.
Save savepong/07ab2fabafe5e8732767e047db877424 to your computer and use it in GitHub Desktop.
Content-Type is not allowed by Access-Control-Allow-Headers
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