Re:GitHub 404'd a CSS file for a while
by FiloSottile on Tuesday September 05, 2017 @02:12PM
(#15177722)
The CORS error is a red herring. Stylesheets are failing to load with 404, and those 404 also happen not to have the CORS headers (since they are simple HTML error pages).
EDIT: CORS is not normally required for stylesheets, but GitHub uses the "crossorigin" <link> attribute, supposedly to prevent cookies from being sent with the request, and that has the side effect of requiring CORS headers:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li...
[ Parent
| on HN ]
Ok, we updated the title above in an attempt at accuracy.
Re:GitHub 404'd a CSS file for a while
by dryajov on Tuesday September 05, 2017 @02:15PM
(#15177743)
yep, I get a 404 on those assets, CORS is just a generic error the browser displays apparently. Has sent me down a few rabbit holes over the years - I which CORS isn't mentioned when its just a 404... arrg...