2021-05-29

Using Content-Security-Policy to allow ws connections on https website

I have a HTTPS website which needs to communicate with a backend securely. I also need it to be able to interface with some hardware that only accepts ws connections (NOT wss). I am wondering whether it is possible (and if so, exactly how) to connect with this hardware. I read here that setting the Content-Security-Policy header to certain values can help enable this. I was wondering if anyone knows whether this approach will work, or if they have suggestions for any other approaches.



from Recent Questions - Stack Overflow https://ift.tt/3p0xJKJ
https://ift.tt/eA8V8J

No comments:

Post a Comment