Skip to content

Instantly share code, notes, and snippets.

@zulfajuniadi
Created December 25, 2013 16:02
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zulfajuniadi/8124513 to your computer and use it in GitHub Desktop.
Save zulfajuniadi/8124513 to your computer and use it in GitHub Desktop.
Enable CORS via htaccess.
Header add Content-Type "application/json"
Header add Access-Control-Allow-Methods "GET,HEAD,POST,PUT,DELETE,OPTIONS"
Header add Access-Control-Allow-Headers "Auth-Token,Content-Type"
Header add Access-Control-Allow-Origin "*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment