openvscode-server icon indicating copy to clipboard operation
openvscode-server copied to clipboard

Images cannot be displayed

Open oldirtybasti opened this issue 4 years ago • 8 comments

If an image is opened in openvscode via the browser, the image is not displayed and an error is shown: Screenshot Is this a bug?

oldirtybasti avatar Oct 06 '21 09:10 oldirtybasti

Yes, it sounds like a bug.

akosyakov avatar Oct 06 '21 11:10 akosyakov

I just tried with nightly and could not reproduce. Could you share more info how you deploy and which file you are trying to preview?

akosyakov avatar Oct 06 '21 11:10 akosyakov

I deploy on aws and copied a png to a project to test it out.

Background: There is an extension for R on the marketplace which generates pngs when plotting data. But these png's cannot be displayed with the above error. Therefore I copied a few pictures from my machine to the project on AWS to test whether any pictures can be displayed remotely. But nothing works.

oldirtybasti avatar Oct 06 '21 16:10 oldirtybasti

Could you check Chrome devtools for any errors?

akosyakov avatar Oct 07 '21 06:10 akosyakov

hm. Interesting. It works in Chrome but not in Firefox (I am on a mac)

oldirtybasti avatar Oct 07 '21 06:10 oldirtybasti

hm. Interesting. It works in Chrome but not in Firefox (I am on a mac)

It could be due to some privacy hardening FF extension or browser specific custom about:config option.

You might wanna try debugging under FF troubleshoot mode and see if it goes well. https://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems#w_start-firefox-in-troubleshoot-mode

axonasif avatar Oct 08 '21 10:10 axonasif

Hi all, the problem get's caused due to CSP issues (#161)

fritterhoff avatar Oct 23 '21 04:10 fritterhoff

hm. Interesting. It works in Chrome but not in Firefox (I am on a mac)

It does not work in Chrome/Linux.

glauberferreira avatar Jun 14 '22 14:06 glauberferreira