Created
January 22, 2021 13:34
-
-
Save rmpel/321770f3aa5427acd1bf4bba0ad036e0 to your computer and use it in GitHub Desktop.
multi-domain Access-Control-Allow-Origin .htaccess
This file contains 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
<IfModule mod_headers.c> | |
SetEnvIf Origin "http(s)?://(www\.)?((subdomain.)?yourdomain.nl)$" AccessControlAllowOrigin=$0 | |
Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin | |
Header merge Vary Origin | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment