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 {
const defaultAllowedSites = [
"'self'",
'*.apps.hbp.eu',
'*.apps-dev.hbp.eu',
...ALLOWED_DEFAULT_SRC
'*.apps-dev.hbp.eu'
]
const dataSource = [
......@@ -49,6 +48,17 @@ module.exports = (app) => {
...defaultAllowedSites,
...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'
},
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