Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dc-csp.md #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
8 changes: 1 addition & 7 deletions _docs/dc-csp.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,10 @@ Example META tag with only Kount security settings. Clients can have multiple C
```html
<meta http-equiv="Content-Security-Policy"
content="img-src https://*.kaptcha.com;
connect-src 'self' 'unsafe-eval' 'unsafe-inline' https://*.kaptcha.com;
script-src 'unsafe-eval' 'unsafe-inline' https://*.kaptcha.com;
child src https://*.kaptcha.com">
```

* `img-src https://*.kaptcha.com`<br>
Informs the browser that images can be loaded from https://*.kaptcha.com. This is to ensure our logo.gif is loaded.
* `connect-src 'self' 'unsafe-eval' 'unsafe-inline' https://*.kaptcha.com`<br>
This informs the browser to allow downloading of our javascript to create 1st party cookies and inject an (unseen) iframe which runs the collector code
* `script-src 'unsafe-eval' 'unsafe-inline' https://*.kaptcha.com`<br>
Informs the browser that it is safe to run the JavaScript that creates the SDK client, sets up the callbacks, and initiates the data collection.
* `child-src https://*.kaptcha.com`<br>
Informs the browser that child documents (iframes) can be loaded from https://*.kaptcha.com. This ensures the iframe that does all the work gets loaded.
Informs the browser that child documents (iframes) can be loaded from https://*.kaptcha.com. This ensures the iframe that does all the work gets loaded.