1
0
Fork 0

fix issue with CSP

refactor/models
Matthew 2019-11-17 16:20:56 -05:00
parent a45f1b6692
commit d219a1eb7e
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 5 additions and 1 deletions

View File

@ -54,7 +54,11 @@ export default class Server {
this.app.use(helmet({
hsts: false,
hidePoweredBy: false,
contentSecurityPolicy: true,
contentSecurityPolicy: {
directives: {
defaultSrc: ['self'],
},
},
}));
this.app.use(bodyParser.json());
this.app.listen(this.options.port, () => {