Skip to content

Commit 74fde75

Browse files
Merge pull request #31 from AnnaKudriasheva/update-version
Update package version
2 parents f8f1c2f + ea5a4b1 commit 74fde75

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ VGSCollect.init(state => { console.log(state); });
120120

121121
Full abilities of VGS Collect.js and integration details you can find in our [documentation](https://www.verygoodsecurity.com/docs/vgs-collect/js/integration).
122122

123+
## CSP directives
124+
125+
We strongly recommend to add the CSP to your application. Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. Please create CSP directives for the following domains:
126+
127+
`connect-src https://js.verygoodvault.com https://js3.verygoodvault.com`
128+
`frame-src https://js.verygoodvault.com https://js3.verygoodvault.com`
129+
`script-src https://js.verygoodvault.com https://js3.verygoodvault.com`
130+
123131
## Examples
124132

125133
- [VGS Collect + React](https://stackblitz.com/edit/vgs-collect-js-react?file=src/App.js)

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vgs/collect-js",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "VGS Collect.js script loading module",
55
"license": "MIT",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)