Created
February 14, 2019 09:18
-
-
Save uzuki-P/2fd3fc9b4b8fe486aa8848dc3ab1598e to your computer and use it in GitHub Desktop.
CORS sub domain
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 "^(.*\.lunata\.co\.id)$" 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