Skip to content

Instantly share code, notes, and snippets.

@Macagare

Macagare/.htaccess

Created Mar 25, 2019
Embed
What would you like to do?
alpes CROS
<ifmodule mod_headers.c="">
SetEnvIf Origin "^(.*\.alpes\.ch)$" ORIGIN_SUB_DOMAIN=$1
Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
Header set Access-Control-Allow-Methods: "*"
Header set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"
</ifmodule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment