You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serve any browser bundle (via browserify or webpack) containing stream-http over http-server with header Content-Security-Policy: connect-src 'self'.
I managed to achieve this using server from this gist and adding at line 45: self.send_header("Content-Security-Policy", "connect-src 'self'").
I don't know how to fix this issue so let me know if I can help you by setting up minimal reproducible repo.
The text was updated successfully, but these errors were encountered:
With content security policy enabled, and the connect sources set to accept certain sources I get the following error in the console:
Seems the issues comes from this line: https://github.com/jhiesey/stream-http/blob/master/lib/capability.js#L17
How to reproduce:
serve any browser bundle (via browserify or webpack) containing
stream-http
over http-server with headerContent-Security-Policy: connect-src 'self'
.I managed to achieve this using server from this gist and adding at line 45:
self.send_header("Content-Security-Policy", "connect-src 'self'")
.I don't know how to fix this issue so let me know if I can help you by setting up minimal reproducible repo.
The text was updated successfully, but these errors were encountered: