microsoft / TypeScript-Handbook

Deprecated, please use the TypeScript-Website repo instead
https://github.com/microsoft/TypeScript-Website
Apache License 2.0
4.88k stars 1.13k forks source link

CORS failures loading fonts #695

Open JoshuaKGoldberg opened 6 years ago

JoshuaKGoldberg commented 6 years ago
modules.html:1
Access to Font at 'http://i.s-microsoft.com/fonts/segoe-ui/west-european/normal/latest.woff' from origin 'http://www.typescriptlang.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://www.typescriptlang.org' is therefore not allowed access.

image

:(

oboukli commented 6 years ago

I'm seeing the following errors in Edge's console

CSS3121: The media query -ms-viewport has been deprecated.

 HTML1506: Unexpected token.
index.html (703,1)

 CSS3115: @font-face failed cross-origin request. No Access-Control-Allow-Origin header.
latest.woff (1,1)

 CSS3116: @font-face failed cross-origin request. Resource access is restricted.
latest.woff (1,1)

 SCRIPT5007: SCRIPT5007: Unable to get property 'parse' of undefined or null reference
buttons.js (1,4398)

 HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier).
GET - https://www.typescriptlang.org/assets/fonts/glyphicons-halflings-regular.0e61f1dd.woff2

And on Chrome, it is:

Access to Font at 'https://i.s-microsoft.com/fonts/segoe-ui/west-european/normal/latest.woff' from origin 'https://www.typescriptlang.org' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains the invalid value ''. Origin 'https://www.typescriptlang.org' is therefore not allowed access.
(index):1 Access to Font at 'https://i.s-microsoft.com/fonts/segoe-ui/west-european/normal/latest.ttf' from origin 'https://www.typescriptlang.org' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.typescriptlang.org' is therefore not allowed access.
cc.min.737d0dc2.js:68 GET https://www.google-analytics.com/analytics.js 0 ()
(anonymous) @ cc.min.737d0dc2.js:68
initGa @ cc.min.737d0dc2.js:69
runCookieRequiringCode @ cc.min.737d0dc2.js:61
(anonymous) @ cc.min.737d0dc2.js:33
j @ vendors.93c18b14.js:2
fireWith @ vendors.93c18b14.js:2
x @ vendors.93c18b14.js:4
(anonymous) @ vendors.93c18b14.js:4
load (async)
send @ vendors.93c18b14.js:4
ajax @ vendors.93c18b14.js:4
(anonymous) @ cc.min.737d0dc2.js:6
(anonymous) @ cc.min.737d0dc2.js:63
(index):1 Access to Font at 'https://i.s-microsoft.com/fonts/segoe-ui/west-european/semilight/latest.woff' from origin 'https://www.typescriptlang.org' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values '*, https://support.microsoft.com, https://support.microsoft.com', but only one is allowed. Origin 'https://www.typescriptlang.org' is therefore not allowed access.
(index):1 Access to Font at 'https://i.s-microsoft.com/fonts/segoe-ui/west-european/semilight/latest.ttf' from origin 'https://www.typescriptlang.org' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'https://support.microsoft.com, https://support.microsoft.com, https://support.microsoft.com', but only one is allowed. Origin 'https://www.typescriptlang.org' is therefore not allowed access.
all.min.9e603e37.js:386 GET https://www.typescriptlang.org/assets/fonts/glyphicons-halflings-regular.0e61f1dd.woff2 404 (Not Found)
render @ all.min.9e603e37.js:386
renderAll @ all.min.9e603e37.js:426
render @ all.min.9e603e37.js:366
(anonymous) @ all.min.9e603e37.js:444
j @ vendors.93c18b14.js:2
fireWith @ vendors.93c18b14.js:2
ready @ vendors.93c18b14.js:2
I @ vendors.93c18b14.js:2