CORS problem for Icons
-
A service has a problem to reach our icon file in Quasar.
'https://domain.com/fonts/MaterialIcons-Regular......woff' from origin has been blocked by CORS Policy. No 'Access-Control-Allow-Origin' header is present on the requested resource
My system works on Nginx HTTP server. I read that I can handle that on my app or http server. Is there a solution for that?
-
If you are using Node with Express, use the Cors middleware: https://github.com/expressjs/cors
-
Thanks for the reply. I think your suggestion is about backend. Our backend’s CORS is ok. The problem is in frontend. This is the file:
'https://domain.com/fonts/MaterialIcons-Regular......woff'
-
This might help then: https://github.com/fontello/fontello/wiki/How-to-setup-server-to-serve-fonts