Unable to show video stream in Atom (Content Security Policy)


#1

I’m creating a video conference package for Atom using PeerJS. My problem is I cannot show video stream in a video element. When I try to set “src” attribute, it says “Refused to load media from ‘blob:file’ because it violates the following Content Security Policy directive:”. Is there a way to bypass CSP in Atom?


#2

Other than the loophole module, I don’t know of one.


#3

@leedohm Thank you for the reply. Is this module applicable for this use case? How can I set a video source with it?


#4

That I don’t have an answer to. I just know that it is the way that some packages get around aspects of the CSP in Atom.