cross domain - If block for specific url .htaccess -
i have little problem here
<ifmodule mod_headers.c> header append access-control-allow-origin "*" </ifmodule>
how can apply header if requested url mydomain.com/ajax/wigdet ? (i can't outside htaccess)
you can use mod_setenvif
this:
setenvifnocase request_uri ^/ajax/wigdet ajax header append access-control-allow-origin "*" env=ajax
Comments
Post a Comment