A
A
Andrew2015-01-22 13:20:13
HTML
Andrew, 2015-01-22 13:20:13

Blocks cross-domain connection. Does not pull up the font and icons. How to fix it?

Good afternoon dear community.
Moved the site, now text icons are not displayed. The console showed the following -
Font from origin ' http://old_site_address ' 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://new_site_address ' is therefore not allowed access.
As far as I understand, the interdomain connection is blocked, because the permission header is not sent, and because of this, the icons are not pulled up.
I tried to solve it by creating .htaccess and uploading the header there, it didn’t work (
Please tell me how to solve this issue and why does it pull fonts from the old address?
Any response is appreciated. Thank you for your time.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav, 2015-01-22
@hedint

Why don't you take the fonts/icons to your new site and set local paths?
If this is not possible, add a header like
Access-Control-Allow-Origin type at the source (the place where the files are located, and not at yourself): http://new_ _site_address

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question