Skip to content

Commit

Permalink
fix(stark-build): add cspFontSrc as configurable property to webpack …
Browse files Browse the repository at this point in the history
…dev server

this enables users to set fonts hosted at a CDN
  • Loading branch information
carlo-nomes committed Nov 6, 2018
1 parent 2ba3d6e commit 5367f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/stark-build/config/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports = function(env) {
// "default-src 'self'", // FIXME: enable as soon as the issue is fixed in Angular (https://github.com/angular/angular-cli/issues/6872 )
"child-src 'self'",
"connect-src 'self' ws://" + METADATA.HOST + ":" + METADATA.PORT + " " + webpackCustomConfig["cspConnectSrc"], // ws://HOST:PORT" is due to Webpack
"font-src 'self'",
"font-src 'self' " + webpackCustomConfig["cspFontSrc"],
"form-action 'self' " + webpackCustomConfig["cspFormAction"],
"frame-src 'self'", // deprecated. Use child-src instead. Used here because child-src is not yet supported by Firefox. Remove as soon as it is fully supported
"frame-ancestors 'none'", // the app will not be allowed to be embedded in an iframe (roughly equivalent to X-Frame-Options: DENY)
Expand Down

0 comments on commit 5367f69

Please sign in to comment.