Error in the web with: "bad URI or cross-site access not allowed source:"

1

I have this error:

  

downloadable font: download failed (font-family: "font-test"   style: normal weight: normal stretch: normal src index: 1): bad URI or   cross-site access not allowed source:    link

The folder structure is this:

/public
   /css
      /fonts.css
   /fonts
      /font-test.ttf

How can I enable cross-site access from php since I do not have access to the conf file of the server?

EDITED

I tried to put: header("Access-Control-Allow-Origin: *"); as I indicated: carmen . But it still does not work.

    
asked by 06.06.2017 в 09:58
source

1 answer

1

Assuming the url is correct, in php:

 header("Access-Control-Allow-Origin: *");

Or on the server if you have access:

Access-Control-Allow-Origin: *
    
answered by 06.06.2017 в 10:03