Embedded gists broken

Gists embedded in Medium articles cause the following error:

The resource from “https://gist.github.com/deepakshrma/78b8a14940b17ffaff159d3188754597?file=06-val.py.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

Example: https://scribe.rip/@deepak-v/validations-in-python-using-metaprogramming-and-decorators-advanced-python-ee4d4278a6b3

Assigned to
4 months ago
3 months ago
No labels applied.

~edwardloveall 4 months ago*

Thanks for the report! I'm seeing the same thing you are. I wonder what's causing that? Not all gists are broken (for example: https://scribe.rip/graphql-cursor-infinite-scroll-pagination-with-react-apollo-client-and-github-api-fafbc510b667 I want to proxy gists eventually, but we'll see what comes first. Full disclosure, I probably won't get to this for a bit, but we'll see where my energy level is over the next few days/weeks.

~decaby7e 4 months ago

Not exactly sure how its contributing to the error but I noticed that in the one you sent, the embedded gists are single files:

<script src="https://gist.github.com/alfianlosari/7d77730b0df9365881811c6875df220e.js"></script>

whereas in the one I sent there are multiple files in a single gist:

<script src="https://gist.github.com/deepakshrma/78b8a14940b17ffaff159d3188754597?file=01-val.py.js"></script>

Haven't checked other articles for this same occurrence but that seems to have something to do with it.

~edwardloveall REPORTED FIXED 3 months ago

Hello! This is now fixed and Scribe is proxying gists. I'm going to mark this as fixed but comment here or open a new issue if you find that it's not working. Thanks for the initial report!

Register here or Log in to comment, or comment via email.