openvscode-server
openvscode-server copied to clipboard
Images cannot be displayed
If an image is opened in openvscode via the browser, the image is not displayed and an error is shown:
Is this a bug?
Yes, it sounds like a bug.
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?
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.
Could you check Chrome devtools for any errors?
hm. Interesting. It works in Chrome but not in Firefox (I am on a mac)
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
Hi all, the problem get's caused due to CSP issues (#161)
hm. Interesting. It works in Chrome but not in Firefox (I am on a mac)
It does not work in Chrome/Linux.