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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -