Merge branch 'feature/dev-csp-headers' into 'master'
Add Content-Security-Policy header See merge request pleroma/admin-fe!14
This commit is contained in:
commit
8e174b6365
1 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,9 @@ const devWebpackConfig = merge(baseWebpackConfig, {
|
|||
quiet: true, // necessary for FriendlyErrorsPlugin
|
||||
watchOptions: {
|
||||
poll: config.dev.poll
|
||||
},
|
||||
headers: {
|
||||
'content-security-policy': "base-uri 'self'; frame-ancestors 'none'; img-src 'self' data: https:; media-src 'self' https:; style-src 'self' 'unsafe-inline'; font-src 'self'; manifest-src 'self'; script-src 'self';"
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
|
|
Loading…
Reference in a new issue