<IfModule mod_rewrite.c> <IfModule mod_headers.c> # Define the root domain that is allowed SetEnvIf Origin .+ ACCESS_CONTROL_ROOT=karadere.com # Check that the Origin: matches the defined root domain and capture it in # an environment var if it does RewriteEngine On RewriteCond %{ENV:ACCESS_CONTROL_ROOT} !=”” RewriteCond %{ENV:ACCESS_CONTROL_ORIGIN} =”” RewriteCond %{ENV:ACCESS_CONTROL_ROOT}&%{HTTP:Origin} ^([^&]+)&(https?://(?:.+?\.)?\1(?::\d{1,5})?)$ RewriteRule .* – [E=ACCESS_CONTROL_ORIGIN:%2] # Set the […]
Oca 24 2017
Php Apache Access Control Allow Origin Multiple Origin Domains
<IfModule mod_rewrite.c> <IfModule mod_headers.c> # Define the root domain that is allowed SetEnvIf Origin .+ ACCESS_CONTROL_ROOT=karadere.com # Check that the Origin: matches the defined root domain and capture it in # an environment var if it does RewriteEngine On RewriteCond %{ENV:ACCESS_CONTROL_ROOT} !=”” RewriteCond %{ENV:ACCESS_CONTROL_ORIGIN} =”” RewriteCond %{ENV:ACCESS_CONTROL_ROOT}&%{HTTP:Origin} ^([^&]+)&(https?://(?:.+?\.)?\1(?::\d{1,5})?)$ RewriteRule .* – [E=ACCESS_CONTROL_ORIGIN:%2] # Set the […]
Devamı
By Burhan KARADERE • Genel • 0 • Tags: ? Php ?, access, apache, control, domains, ini, multiple, origin