symbl-cc / symbl-data

UNICODE Characters for SYMBL.CC
https://symbl.cc
722 stars 115 forks source link

Old version CORS errors #167

Open anonymous1184 opened 1 year ago

anonymous1184 commented 1 year ago

The old version for me is super useful and intuitive, but sadly since a few weeks before the upgrade some assets return CORS errors and that keeps the site from loading properly.

The problem is with assets loading from s.unicode-table.com.

Can you fix that? It will be lovely. The old version is super useful for Unicode work rather than just Emoji and smileys.

alex-py-234 commented 1 year ago

Need some examples with this error. Can you write them?

anonymous1184 commented 1 year ago

This is from Firefox console, Network tab:

image

Isolating a single call, say u0000.woff:

image

You can see the Origin header in the request:

Origin: https://old.unicode-table.com

Doesn't match the Access-Control-Allow-Origin header in the response:

access-control-allow-origin: unicode-table.com dev.unicode-table.com s-unicode.akamaized.net

Thus, making browsers block the asset from loading:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin