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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -