Help with websocket #16565
-
Cockpit version: 251 I would like to make websocket connection via cockpit.channel. I would like to do following
Can you give me hint or example for this? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It would help me too! |
Beta Was this translation helpful? Give feedback.
-
I've tried this code:
but it ended with:
|
Beta Was this translation helpful? Give feedback.
-
As a first step you'd need to allow this in the Content-Security-Policy in your manifest.json. Add something like
I don't know if that's already sufficient, but that at least takes care of the C-S-P blocking? |
Beta Was this translation helpful? Give feedback.
As a first step you'd need to allow this in the Content-Security-Policy in your manifest.json. Add something like
I don't know if that's already sufficient, but that at least takes care of the C-S-P blocking?