typemill / typemill

Typemill is a lightweight, flat-file CMS designed for simple, fast, and flexible website and eBook creation using Markdown.
https://typemill.net
MIT License
424 stars 60 forks source link

Media links are not shown in 2.3.3. (and 2.3.2) #467

Closed xprssnst closed 1 week ago

xprssnst commented 1 month ago

I was not very active with my site the last months and just noticed that links to photos are no longer shown as in previous versions. This might be even an issue from 2.0. An example of my site is here: https://xprssn.st/deutsch/projekte/london/2013#h-2013 When you switch to reading mode, the photos are shown. Same issue in Firefox and Safari. With Brave similar - reader mode doesn't show photos here. Other browser not tested. MacOS and iOS.

xprssnst commented 2 weeks ago

I checked after the update to 2.4.1. - same issue. The Markdown code has not changed on my pages, if I check it with e.g. Typora everything is going to be displayed.

trendschau commented 2 weeks ago

Yes, sorry, I did not had the time to go into it but checked it quickly now.

You include your images from a different domain, your domain is https://xprssn.st and the domain for images is https://fotogalerie.ws

Typemill version 2 is stricter with security and does not allow content from other domains (it is called content security policy csp). You can simply add those external domains to the whitelist. Go to system, open the tab "developer" and check the input field for "csp". There you can enter the domain for your images and then it should work. (See screenshot).

You can also disable csp completely, but this will be less secure then. I will add this to the documentation somewhere more prominently....

Unbenannt

xprssnst commented 2 weeks ago

Thank you, that seems to be the point, yes, probably it is since 2.0 and just didn't realise it earlier. It works fine now :-)