Sometime we have to request files from different host using ajax, and it may create problem because of CORS polices.
CORS means Cross-Origin Resource Sharing (CORS).
Cross domain request will be block by most of the browsers due to same-origin security policy. so we have to enable CORS on our server.we can do this by setting
Access-Control-Allow-Origin in a PHP with changing server.
if we need to allow a request from a perticular domain we can restrict as below
or we can allow from all sites
8,660 total views, 2 views today
August 31, 2015 at 9:27 am
It is actually a nice and useful piece of information. I am satisfied
that you shared this useful information with us. Please stay
us informed like this. Thanks for sharing.
August 31, 2015 at 5:29 pm
whoah this blog is fantastic i really like reading your articles.
Stay up the good work! You realize, lots of persons are hunting around for this info, you can help them greatly.