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

Re: [sysreq #12077] CORS headers needed for MathJax fonts, allowing access from

From: Raymond Toy <rtoy@google.com>
Date: Fri, 22 Sep 2017 08:08:16 -0700
Message-ID: <CAE3TgXEeOtSHbzX8ggnvc8wYeZM3OBzY_rT_fXtVxCLqtnE2fQ@mail.gmail.com>
To: sysreq@w3.org
Cc: "public-audio@w3.org" <public-audio@w3.org>, Bert Bos <bert@w3.org>
Thanks so much for the quick fix!  No more errors now.

On Fri, Sep 22, 2017 at 5:15 AM, José Kahan via RT <sysreq@w3.org> wrote:

> Fixed.
>
> We had this issue because the mime type for woff fonts changed and we
> hadn't updated that part in our server config. All woff fonts had the cors
> header and now they have it again.
>
> For Bert, using '*' is enough for this case.
>
> -j
>
> On Thu Sep 21 18:56:24 2017, chris wrote:
> > Hi sysreq,
> >
> > (Bert copied as maintainer of the W3C MathJax instance, WG copied
> > because of issue 1329 )
> > https://github.com/WebAudio/web-audio-api/issues/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
> > https://www.w3.org/scripts/MathJax/2.6.1/fonts/HTML-
> > CSS/TeX/woff/MathJax_Size4-Regular.woff?rev=2.6.1.
> > (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:
> > https://www.w3.org/scripts/MathJax/2.6.1/fonts/HTML-
> > CSS/TeX/woff/MathJax_Size4-Regular.woff?rev=2.6.1
> >
> > There is documentation here on adding CORS headers
> > https://www.w3.org/wiki/CORS_Enabled
> > https://www.webcodegeeks.com/web-servers/cors-and-how-to-enable-it-in-
> > apache-web-server/
> > https://enable-cors.org/server_apache.html
> >
> > Thanks!
>
>
>
>
>
Received on Friday, 22 September 2017 15:08:42 UTC

This archive was generated by hypermail 2.3.1 : Friday, 22 September 2017 15:08:43 UTC