Welcome! Log In Create A New Profile

Advanced

CORS only in certain directory

Posted by AdmSrck 
CORS only in certain directory
January 13, 2012 10:01AM
Hi there,
Is there option to enable CORS by adding proper headers only to resources from certain location on server. For example:
http://example.com/api1 - don't have CORS
but
http://example.com/api2 - have CORS enabled

I managed to get it work globally, but it's not the point :)

Thanks,
Adam
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 191
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready