Skip to content

Commit

Permalink
feat(routing): adapt CSP style-src directive to allow inline styles f…
Browse files Browse the repository at this point in the history
…rom UI Router visualizer

Not used for now since the style-src directive is commented due to other issues with Angular
  • Loading branch information
christophercr authored Feb 19, 2018
1 parent 3bc995b commit 8a1a8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/build/config/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module.exports = function () {
"object-src 'self'",
"plugin-types application/pdf", // valid mime-types for plugins invoked via <object> and <embed>
// "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-cef324d21ec5483c8819cc7a5e33c4a2'" // we define the same nonce value as in the style-loader // FIXME: DomSharedStylesHost.prototype._addStylesToHost in platform-browser.js adds inline style!
// "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!
];

return webpackMerge(commonConfig({ENV: ENV, metadata: METADATA}), {
Expand Down

0 comments on commit 8a1a8fa

Please sign in to comment.