-
-
Save carlohcs/ccc530c9b76adf42ac2494a0d6b10bf7 to your computer and use it in GitHub Desktop.
Access-Control-Allow-Origin for Subdomains
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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