Created
March 13, 2019 09:59
-
-
Save pwartbichler/ce648d8ffbb13050b543bbbe5e10ec69 to your computer and use it in GitHub Desktop.
Header-Einstellungen für Cross-Origin-Requests
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
# ERLAUBTE_URL = foo.com (zB) | |
<IfModule mod_headers.c> | |
SetEnvIf Origin "^(http(s)?://(www\.)?(ERLAUBTE_URL))$" ORIGIN_SUB_DOMAIN=$1 | |
Header set Access-Control-Allow-Origin: "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment