diff --git a/packages/stark-build/config/webpack.config.js b/packages/stark-build/config/webpack.config.js index 053396745a..467fc01b72 100644 --- a/packages/stark-build/config/webpack.config.js +++ b/packages/stark-build/config/webpack.config.js @@ -33,8 +33,7 @@ const cspDirectives = [ "frame-ancestors 'none'", // the app will not be allowed to be embedded in an iframe (roughly equivalent to X-Frame-Options: DENY) "img-src 'self' data: image/png", // data: image/png is due to ui-router visualizer loading PNG images "media-src 'self'", - "object-src 'self'", - "plugin-types application/pdf" // valid mime-types for plugins invoked via and + "object-src 'self' data:" // "script-src 'self'", // FIXME: enable as soon as the issue is fixed in Angular (https://github.com/angular/angular-cli/issues/6872 ) // "style-src 'self' 'nonce-uiroutervisualizer' 'nonce-cef324d21ec5483c8819cc7a5e33c4a2'" // we define the same nonce value as in the style-loader // FIXME: DomSharedStylesHost.prototype._addStylesToHost in platform-browser.js adds inline style! ];