I am currently using express and heroku to host a prototype of a landing page.
While the webpage functions properly when running locally, I encounter font loading issues when accessing it on heroku most of the time...
The CSS files are located under /public/css/style.css
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display&family=Helvetica");
An error message appears in the console:
GET https://fonts.googleapis.com/css2?family=Playfair+Display&family=Helvetica net::ERR_ABORTED 403
I have attempted to resolve this by changing how I download the fonts using the link tag:
<link href="https://fonts.googleapis.com/css?family=Playfair+Display&family=Helvetica" rel="stylesheet">
However, the issue persists...
Any suggestions or solutions would be greatly appreciated!