1
votes

We have added following settings to enable CORS for both domains a.domain.com and b.domain.com

Header set Access-Control-Allow-Origin "*"

But still getting error.

Font from origin 'http://b.domain.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://a.domain.com' is therefore not allowed access.

I know this is simple setting, and we are successfully using it, but in this case no luck.

http://enable-cors.org/server_apache.html

How does Access-Control-Allow-Origin header work?

1
Try restarting the Apache webserver. And where did you placed SET HEADER code ? - Rajesh Manilal

1 Answers

0
votes

Add .htaccess file to your Application's root folder, and place the following code in it

Header add Access-Control-Allow-Origin "*"