vscode-crossnote icon indicating copy to clipboard operation
vscode-crossnote copied to clipboard

Allow Preview of Images from Local Folders

Open BenMatheja opened this issue 5 years ago • 0 comments

Hi all, first of thanks @shd101wyy for creating this plugin. It is a big leap forward to use VScode as the single note-taking app.

Within my notes I reference images served from an assets folder within the same directory all of my notes are placed.

![Berliner Modell](assets/BerlinerModell.jpg "Berliner Modell")

Unfortunately the internal preview disallows from loading the image due to CSP-Policies.

Embedded Page] Refused to load the image 'vscode-resource://file//d:/Daten/OneDrive/Knowledge/assets/BerlinerModell.jpg' because it violates the following Content Security Policy directive: "img-src 'self' data: https: vscode-webview-resource:".

Is there any way I can influence that e.g. by using the right vscode-crossnote settings?

BenMatheja avatar Nov 29 '20 09:11 BenMatheja