Skip to content

Instantly share code, notes, and snippets.

@fitsum
Created May 18, 2014 20:16
Show Gist options
  • Save fitsum/c64b8b92ce6ebc3d9f5f to your computer and use it in GitHub Desktop.
Save fitsum/c64b8b92ce6ebc3d9f5f to your computer and use it in GitHub Desktop.
Access Control - Allow Origin
# .htaccess
#
# single
Header set Access-Control-Allow-Origin "*"
# multiple
Header add Access-Control-Allow-Origin "domain1"
Header add Access-Control-Allow-Origin "domain2"
Header add Access-Control-Allow-Origin "domain3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment