-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #174 from data-intuitive/develop
Develop
- Loading branch information
Showing
4 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
"use strict" | ||
|
||
const serverConfiguration = { | ||
|
||
// Sets the content Security Policy in helmet | ||
// Basically, define which sources are allowed to come from which locations | ||
// This is a default value that works with a local host, Spark Jobserver and a Sourire instance | ||
contentSecurityPolicy: { | ||
directives: { | ||
defaultSrc: ["'self'"], | ||
scriptSrc: ["'self'", "'unsafe-inline'", "'unsafe-eval'"], | ||
connectSrc: ["localhost:3080", "localhost:8090"], | ||
styleSrc: ["'self'", "'unsafe-inline'", "fonts.googleapis.com"], | ||
imgSrc: ["'self'", "localhost:9999", "www.data-intuitive.com"], | ||
} | ||
} | ||
} | ||
|
||
exports = serverConfiguration | ||
module.exports = serverConfiguration | ||
|
||
exports["default"] = serverConfiguration |