Skip to content

Instantly share code, notes, and snippets.

@berkayunal
Forked from THEtheChad/.htaccess
Created August 15, 2016 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berkayunal/1e4aeb391f548573491ba0a6851dd464 to your computer and use it in GitHub Desktop.
Save berkayunal/1e4aeb391f548573491ba0a6851dd464 to your computer and use it in GitHub Desktop.
Access-Control-Allow-Origin for Subdomains
SetEnvIf Origin "^(.*\.example\.com)$" ORIGIN_SUB_DOMAIN=$1
Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment