Skip to content

Commit caa1d64

Browse files
untitakerkamilogorek
authored andcommitted
Add information about the CSP to the docs
1 parent e0c898f commit caa1d64

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/install.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ The same thing can happen for any cross-origin scripts as well. To read more abo
127127

128128
To read un-minified source code for this loader, see `loader.js <https://github.com/getsentry/raven-js/blob/master/packages/raven-js/src/loader.js>`_
129129

130+
Content-Security Policy
131+
~~~~~~~~~~~~~~~~~~~~~~~
132+
133+
If you have CSP set up on your site, you will need to add the `script-src` of wherever you're loading the SDK from, and the origin of your DSN. For example:
134+
135+
* `script-src: https://cdn.ravenjs.com`
136+
* `connect-src: https://sentry.io`
137+
130138
Requirements
131139
~~~~~~~~~~~~
132140

0 commit comments

Comments
 (0)