W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2017

CORS headers needed for MathJax fonts, allowing access from

From: Chris Lilley <chris@w3.org>
Date: Thu, 21 Sep 2017 14:56:19 -0400
To: sysreq@w3.org
Cc: Bert Bos <bert@w3.org>, public-audio@w3.org
Message-ID: <29da7e5d-9285-a6d4-b035-f7ed4b9ef03c@w3.org>
Hi sysreq,

(Bert copied as maintainer of the W3C MathJax instance, WG copied 
because of issue 1329 )

The Web Audio spec uses MathJax. The editors draft, at 
https://webaudio.github.io/web-audio-api/ gives browser console errors 
because of the cross origin font request (which is correct, per spec) 
and so I am asking for an Access-Control-Allow-Origin header to be 
added, enabling webaudio.github.io.

Here is a sample error (similar ones for the other fonts)

Cross-Origin Request Blocked: The Same Origin Policy disallows reading 
the remote resource at 
(Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

which leads to

downloadable font: download failed (font-family: "MathJax_Size4" 
style:normal weight:normal stretch:normal src index:0): bad URI or 
cross-site access not allowed source: 

There is documentation here on adding CORS headers


Chris Lilley
Technical Director @ W3C
W3C Strategy Team, Core Web Design
W3C Architecture & Technology Team, Core Web & Media
Received on Thursday, 21 September 2017 18:56:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:34 UTC