Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions browsers/live-view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,15 @@ The live view URL can be embedded in an iframe to integrate the browser view int

To enable clipboard sharing, add `allow="autoplay; clipboard-read; clipboard-write"` to the iframe element.

If your application uses a **Content Security Policy (CSP)**, you'll need to add the following directives to allow the live view iframe and its WebSocket connection:
Kernel serves live views from `*.onkernel.com:8443` and `*.kernel.sh:8443`. If your application uses a **Content Security Policy (CSP)**, you must add the following directives to allow the live view iframe and its WebSocket connection:

```
frame-src https://*.onkernel.com:8443;
frame-src https://*.onkernel.com:8443
https://*.kernel.sh:8443;
connect-src https://*.onkernel.com:8443
wss://*.onkernel.com:8443;
wss://*.onkernel.com:8443
https://*.kernel.sh:8443
wss://*.kernel.sh:8443;
```
</Info>

Expand Down
Loading