Google Fonts blocked by NoScript

Ask for help about NoScript, no registration needed to post
fyxas
Posts: 3
Joined: Wed Sep 01, 2010 10:04 pm

Google Fonts blocked by NoScript

Post by fyxas »

I'm using Google Fonts to my website like this, it's been working for over a year.

Code: Select all

<link href='http://fonts.googleapis.com/css?family=Roboto:400,400italic,500|Roboto+Condensed' rel='stylesheet' type='text/css'>
But recently a fallback font appears on Firefox with Noscript. "Forbid @font-face" is unchecked, and it shouldn't matter in the first place since my website is whitelisted.

Here's what I get in Firefox console:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://fonts.gstatic.com/s/roboto/v15/C ... UTuA.woff2. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

downloadable font: download failed (font-family: "Roboto" style:normal weight:normal stretch:normal src index:2): bad URI or cross-site access not allowed source: http://fonts.gstatic.com/s/roboto/v15/C ... UTuA.woff2
I tried disabling XSS protection altoghether, but it has no effect. There's no XSS message when the fonts are blocked, either:

Image

Only found two ways to make it work:

1. Use secure https://fonts.googleapis.com/etc... link to include the fonts, then it works (no idea why)

2. Restart Firefox with NoScript add-on disabled (that's my only clue that it's NoScript doing this)

So, any way to use NoScript as before but allow Google Fonts? I thought maybe I need to add XSS exception, but unchecking XSS protection had no effect...
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0
User avatar
therube
Ambassador
Posts: 7929
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Google Fonts blocked by NoScript

Post by therube »

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40
User avatar
Giorgio Maone
Site Admin
Posts: 9454
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Google Fonts blocked by NoScript

Post by Giorgio Maone »

Please check latest development build 2.9.0.6rc1, thanks.
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
fyxas
Posts: 3
Joined: Wed Sep 01, 2010 10:04 pm

Re: Google Fonts blocked by NoScript

Post by fyxas »

Google Fonts work now, much thanks!
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0
Post Reply