Origin ' ' is therefore not allowed access. If using Google Chrome and you right click > Inspect Element, you may see a similar error, as I did in my debug log: Font from origin ' ' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. What this means for Font Awesome, is if you are using a CDN or separate subdomain to host your font files or Nginx/Apache servers, you will need to specify an Access-Control-Allow-Origin header to get the fonts to display properly. Cross-Origin Resource Sharing (CORS) allows your websites server to retrieve fonts and information from the server those fonts may be hosted on. Firefox and now Google Chrome have same-origin policy restrictions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |