Skip to content

Commit e618bb5

Browse files
Dan Boscarolhokktyn
authored andcommitted
fix: udpate csp options docs
1 parent 610a14d commit e618bb5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

docs/api/bootstrap.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ const casaApp = casa(expressAppInstance, {
2828
// csp (Objectl; optional; default {})
2929
// Content-Security-Policy directives, where each key of the object is a valid
3030
// CSP directive (e.g. default-src, script-src, img-src, etc) and the value
31-
// if the CSP header value.
32-
// CASA will always append its own `script-src` values to any set here.
31+
// is an array of the CSP header values to be added.
32+
// CASA will always append its own `script-src` values to any set here which
33+
// include by default: 'self', 'unsafe-inline',
34+
// https://www.google-analytics.com/ and https://www.googletagmanager.com/
3335
csp: {
34-
'script-src': 'http://myexample.test/scripts/',
36+
'script-src': ['http://myexample.test/scripts/'],
3537
},
3638

3739
headers: {

0 commit comments

Comments
 (0)