![]() ![]() ![]() Notice that they only set access-control-allow-origin for font and css files: # Allow access from all domains for webfonts. The solution in this case was to modify the .htaccess file in the root directory of my website by adding the following lines below. 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. installs folders to a variety of places, but nearly all to the C drive. When installing is different to all guidance online: you can not choose each folders location but just one folder location for all files to install (supposedly). 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. ATTEMPTED to install 2021 to the secondary drive (D). 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 |