0

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?

Community
  • 1
  • 1
Mudasar Yasin
  • 519
  • 2
  • 10
  • 17

1 Answers1

-1

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

Header add Access-Control-Allow-Origin "*"
Rajesh Manilal
  • 974
  • 8
  • 20