Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(server): Add a 'connect-src' directive to allow contact with the …
Browse files Browse the repository at this point in the history
…auth-server and oauth-server

fixes #1253
  • Loading branch information
Shane Tomlinson committed Jun 18, 2014
1 parent a13a8eb commit 28d9a90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/bin/fxa-content-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ function makeApp() {
app.use(helmet.hsts(config.get('hsts_max_age'), true));
if (config.get('env') === 'development') {
app.use(helmet.csp({'default-src': ['\'self\''],
'connect-src': ['\'self\'',
config.get('fxaccount_url'),
config.get('oauth_url')
],
'report-uri': '/_/csp-violation',
'reportOnly': true
}));
Expand Down

0 comments on commit 28d9a90

Please sign in to comment.