Skip to content
Snippets Groups Projects
Commit 213e8249 authored by feld's avatar feld
Browse files

Add Content-Security-Policy header to webpack so the dev server behaves like Pleroma production

parent 6fdbd444
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.
Finish editing this message first!
Please register or to comment