Created
March 2, 2020 08:08
-
-
Save aamsur-mkt/683e89e1ff188af4f98467f13150eda4 to your computer and use it in GitHub Desktop.
Dynamic Wildcard Subdomain Apache CORS
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 "^http(s)?://(.+\.)?(localhost|localhost:8000|booking\.google\.com|booking\.yahoo\.com)$" origin_is=$0 | |
| Header set Access-Control-Allow-Origin %{origin_is}e env=origin_is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment