simov / markdown-viewer

Markdown Viewer / Browser Extension
MIT License
1.01k stars 131 forks source link

Not rendering remote file on Firefox #211

Closed GokulRajV8 closed 1 year ago

GokulRajV8 commented 1 year ago

I am running Firefox on Arch Linux with Markdown viewer add-on and a file from remote origin is not getting rendered as shown below despite allowing access and adding all origins in the settings.

image image

simov commented 1 year ago

Have a look at this document https://github.com/simov/markdown-viewer/blob/main/firefox.md

GokulRajV8 commented 1 year ago

As per the document, the content is served as text/plain but the same content type is added in the settings under Content Type Detection: as shown in the screenshot. Kindly help

simov commented 1 year ago

It's inside this chapter: https://github.com/simov/markdown-viewer/blob/main/firefox.md#remote-origins-with-strict-csp

For example, content on GitHub's raw.githubusercontent.com won't be rendered even if that origin was enabled inside the Advanced Options page

Your screenshot shows a file served on the raw.githubusercontent.com

I'm also showing that here: https://vimeo.com/807266428 Screenshot from 2023-04-14 19-24-58

GokulRajV8 commented 1 year ago

Got it now. The video was helpful to understand. Thanks for the help and I love your product by the way.