Skip to content

Commit 2a205b4

Browse files
committed
Chat CSP
1 parent db9d7e3 commit 2a205b4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

_snippets/chat/customization.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ Plain.init({
1515
}],
1616

1717
// The color of your brand which will be used in parts of the Chat as well as the launcher color
18-
brandColor: '#FF0000',
18+
brandColor: '#000000',
1919
});
2020
```

chat.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,13 @@ Here’s how to get started:
2828
Each new conversation in the Chat widget creates a new thread in Plain. You can view and respond to these threads in the Plain app.
2929
</Step>
3030
</Steps>
31+
32+
## Content Security Policy (CSP)
33+
34+
If you are using a Content Security Policy on your website, you will need to add the following to your CSP:
35+
36+
```text
37+
script-src https://cdn.plain.com;
38+
connect-src https://chat.uk.plain.com;
39+
style-src https://fonts.googleapis.com;
40+
```

0 commit comments

Comments
 (0)