Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nosniff blocking css loading? #131

Open
maxandersen opened this issue Jun 3, 2023 · 2 comments
Open

nosniff blocking css loading? #131

maxandersen opened this issue Jun 3, 2023 · 2 comments

Comments

@maxandersen
Copy link

I see #20 says nosniff does not break but I do see it breaking with

The resource from “https://raw.githubusercontent.com/maxandersen/presentations/main/css/custom.css” was blocked due to MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff).

see on https://htmlpreview.github.io/?https://github.com/maxandersen/presentations/blob/1e224794c735742e3c3377a49233e38ac4648660/index.html

@maxandersen
Copy link
Author

@hoijui
Copy link

hoijui commented Feb 21, 2024

For me, I see the same for both links, the htmlpreview one and the raw.githack one: a blank page.
It is true that there is an error about nosniff from htmlpreview, but that comes from trying to load the CSS directly first (without a proxy), which fails, and then it is tried to be loaded through a proxy and that seems to work.
After that though, there are errors with Reveal not being found, and so .. my best bet is, that this causes the issues. CSS loading from github does work with other examples.

As a side-note: I recommend you use the new fork of HTML-preview mentioned at #139,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants