Closed WofWca closed 11 months ago
fetch('/index.html').then(console.log)
python -m http.server 8000
webxdc-dev run http://localhost:8000
fetch succeeds.
fetch
fetch fails because of connect-src CSP: default-src 'self' ;connect-src ws://localhost:7001 ws://localhost:8000.
connect-src
default-src 'self' ;connect-src ws://localhost:7001 ws://localhost:8000
I think 'self' should be present it connect-src, I don't know why it's just ws://.
'self'
ws://
Reproduction
fetch('/index.html').then(console.log)
python -m http.server 8000
.webxdc-dev run http://localhost:8000
.Expected result
fetch
succeeds.Actual result
fetch
fails because ofconnect-src
CSP:default-src 'self' ;connect-src ws://localhost:7001 ws://localhost:8000
.Extra info
I think
'self'
should be present itconnect-src
, I don't know why it's justws://
.