Font-awesome: Using the Font Awesome Pro CDN on a localhost Domain

Created on 21 Apr 2018  路  8Comments  路  Source: FortAwesome/Font-Awesome

Hey all.

I'm using the Font Awesome Pro CDN. I've added 'localhost' as one of my domains so I could use FA5 on my local machine before going live. It initially worked for about half a day, then all of a sudden it stopped. Now I'm receiving this error:

Failed to find a valid digest in the 'integrity' attribute for resource 'https://pro.fontawesome.com/releases/v5.0.10/css/all.css' with computed SHA-256 integrity '0eNsFOuBYxbtHwGVdWGqjfzOWh1UHhGoPS6jRMSenEg='. The resource has been blocked.

Any ideas as to why?

Most helpful comment

What happened to the fontawesome pro repo?

All 8 comments

Hi!

Thanks for being part of the Font Awesome Community.

Could you please open this issue in the Font Awesome Pro repo at https://github.com/FortAwesome/Font-Awesome-Pro?

If you don't have access to the above repository, please make sure you have linked your Font Awesome Account to your GitHub account at https://fontawesome.com/account/services

anymore help on this issue?
I can load free icons in my localhost build ok, but not the Pro icons?

Hi @auxiliaryjoel

I've tried to replicate your issue but I couldn't.

Here it is my source code (index.html):

<!doctype html>
<html lang="en">
  <head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Font Awesome Pro CSS -->
    <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-xVVam1KS4+Qt2OrFa+VdRUoXygyKIuNWUUUBZYv+n27STsJ7oDOHJgfF0bNKLMJF" crossorigin="anonymous">

    <title>Hello, world!</title>
  </head>
  <body>
    <h1>Hello, <span class="fal fa-globe-americas"></span>!</h1>
  </body>
</html>

I've run a simple http server with python

python -m SimpleHTTPServer 8000

Here it is the output:

image

I didn't have to whitelist localhost because it has been already whitelisted in the CDN, IIRC

If you still have issues, please fill out our bug report template

where did you get the Font Awesome Pro CSS link from?
I get told to "Step1. copy this code" on the Font Awesome website, but there is no code displayed and not links on the page that reference the code?
So consequently I am using the URL to existing font awesome that I've always used:

@tagliala Here is example screenshot:
image
As my site is currently http://localhost:8888/ Font Awesome won't allow me to enter that (it tells me it's already covered).
So I cannot progress from this window, and as you can see in Step 1 it tells me to copy code,but does not provide any code to copy?

Update: @tagliala I added a fake domain just so I could progress to next step, which then did allow me to obtain the new code to include in my head.
It works now, but Font Awesome should consider a way to provide that code to localhost users as currently the process is not very user-friendly.

@auxiliaryjoel thanks, I've got the issue now. Let's continue on the Pro repository

What happened to the fontawesome pro repo?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ojvribeiro picture ojvribeiro  路  3Comments

rufengch picture rufengch  路  3Comments

brystfire08 picture brystfire08  路  3Comments

daneren2005 picture daneren2005  路  3Comments

seppestas picture seppestas  路  3Comments