How to fix cURL?

Began quietly poking around, to learn cURL. And immediately ran into this error:

Font from origin 'site.ru' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'test' is therefore not allowed access.

Translated:

Font from origin 'site.ru' has been blocked from loading policy for Cross-Origin Resource Sharing: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'HTTP: //test', therefore, has no right of access.

As it is necessary to send the header, or to not doganyaesh.

How to fix it? =)

Thank you.
August 23rd 19 at 10:55
1 answer
August 23rd 19 at 10:57
There's no need to ship resources directly from other sites. Download the font yourself and give from your site.
I'm not loaded. I'm just trying to login on your site with the local area. I think I even downloaded the font, connected, error still. Will not prompt that might help? - Vivienne.Lem commented on August 23rd 19 at 11:00
Page open test does not have the right to ship anything with site.ruif the latter is not allowed, this is clearly adding to the response header "Access-Control-Allow-Origin" with the appropriate parameters. This is followed by the browser. - Erling.Berni commented on August 23rd 19 at 11:03
and site.ru you can customize this header? so you can get. - Vivienne.Lem commented on August 23rd 19 at 11:06
: If it's your server, you can. Add the results header in the config of Apache or Nginx, depending on what you have there. - Erling.Berni commented on August 23rd 19 at 11:09
On my hosting =( I understand You, thanks =) - Vivienne.Lem commented on August 23rd 19 at 11:12

Find more questions by tags PHP