Skip to content

Commit

Permalink
Remove extra self in csp
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Nov 30, 2018
1 parent 4854fa2 commit 63501ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/csp.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const createCspHeader = (options, {
const scriptHashes = scripts.map(cspHash)
const directives = [
['default-src', origin],
['script-src', "'self'", origin, ...scriptHashes],
['script-src', origin, ...scriptHashes],
['img-src', "'self'", origin],
['connect-src', api],
['report-uri', reportUri]
Expand Down

0 comments on commit 63501ee

Please sign in to comment.