Skip to content
Snippets Groups Projects
Commit 4236dc37 authored by Xiao Gui's avatar Xiao Gui
Browse files

chore: added library cdn to allowed csp

parent f6f526c7
No related branches found
No related tags found
No related merge requests found
...@@ -20,8 +20,7 @@ try { ...@@ -20,8 +20,7 @@ try {
const defaultAllowedSites = [ const defaultAllowedSites = [
"'self'", "'self'",
'*.apps.hbp.eu', '*.apps.hbp.eu',
'*.apps-dev.hbp.eu', '*.apps-dev.hbp.eu'
...ALLOWED_DEFAULT_SRC
] ]
const dataSource = [ const dataSource = [
...@@ -49,6 +48,17 @@ module.exports = (app) => { ...@@ -49,6 +48,17 @@ module.exports = (app) => {
...defaultAllowedSites, ...defaultAllowedSites,
...dataSource ...dataSource
], ],
scriptSrc:[
"'self'",
'*.apps.hbp.eu',
'*.apps-dev.hbp.eu',
'*.jquery.com',
'*.cloudflare.com',
'unpkg.com',
'*.unpkg.com',
'*.jsdelivr.net',
...ALLOWED_DEFAULT_SRC
],
reportUri: '/report-violation' reportUri: '/report-violation'
}, },
reportOnly: true reportOnly: true
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment