enable CORS to allowed cross domain requests

This is driving me nuts. I have a wordpress instalaltion that uses WPML for translation. I have a extra domain for the second language that points to the root domain and loads the second language. Unfortunately I have a css problem. My console is giving me this error:

Font from origin ‘http://www.example.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://www.example.com‘ is therefore not allowed access.

I have tried to add Header set Access-Control-Allow-Origin “*” to my .htaccess in every possible way I can find information on – bit its still not working.

What else can i do?

Source: .htaccess

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.