Skip to content
Snippets Groups Projects
Commit 8e174b63 authored by feld's avatar feld
Browse files

Merge branch 'feature/dev-csp-headers' into 'master'

Add Content-Security-Policy header

See merge request !14
parents 6fdbd444 213e8249
No related branches found
No related tags found
1 merge request!14Add Content-Security-Policy header
......@@ -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: [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment