Created
June 18, 2012 17:45
-
-
Save douglasmiranda/2949648 to your computer and use it in GitHub Desktop.
Apache: When we make a Ajax request and get something like: "Origin http://ANY_DOMAIN_HERE is not allowed by Access-Control-Allow-Origin..."
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
SetEnvIf Origin "^http(s)?://(.+\.)?(http://ANY_DOMAIN_HERE\.com)$" origin_is=$0 | |
Header always 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