Skip to content

Instantly share code, notes, and snippets.

@aamsur-mkt
Created March 2, 2020 08:08
Show Gist options
  • Select an option

  • Save aamsur-mkt/683e89e1ff188af4f98467f13150eda4 to your computer and use it in GitHub Desktop.

Select an option

Save aamsur-mkt/683e89e1ff188af4f98467f13150eda4 to your computer and use it in GitHub Desktop.
Dynamic Wildcard Subdomain Apache CORS
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