Laravel- No 'Access-Control-Allow-Origin' header is present on the requested resource

0

Display my app in heroku and some icons do not load, I get this error ...

Access to Font at ' link ' from origin ' link 'has been blocked by CORS policy: No' Access-Control-Allow-Origin 'header is present on the requested resource. Origin ' link ' is therefore not allowed access.

I have several functions with ajax which do not work either ... all this in local works correctly. What I do?

Response to preflight request does not pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

    
asked by Camilo 10.07.2018 в 03:11
source

1 answer

0

the url where you call your source

  

link

And the domain of your app is this:

  

link

If you realize the URL of your source does not have https that makes the url different from the source. The solution: put https to your routes

    
answered by 11.07.2018 в 12:15