Skip to content

Instantly share code, notes, and snippets.

@nulltier
Created December 28, 2015 06:55
Show Gist options
  • Save nulltier/57c3b23eeb009ef5ec0d to your computer and use it in GitHub Desktop.
Save nulltier/57c3b23eeb009ef5ec0d to your computer and use it in GitHub Desktop.
Header set Access-Control-Allow-Origin in .htaccess
Header add Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment