forked from engineering/cloudservices
fix issue with CSP
parent
a45f1b6692
commit
d219a1eb7e
|
@ -54,7 +54,11 @@ export default class Server {
|
||||||
this.app.use(helmet({
|
this.app.use(helmet({
|
||||||
hsts: false,
|
hsts: false,
|
||||||
hidePoweredBy: false,
|
hidePoweredBy: false,
|
||||||
contentSecurityPolicy: true,
|
contentSecurityPolicy: {
|
||||||
|
directives: {
|
||||||
|
defaultSrc: ['self'],
|
||||||
|
},
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
this.app.use(bodyParser.json());
|
this.app.use(bodyParser.json());
|
||||||
this.app.listen(this.options.port, () => {
|
this.app.listen(this.options.port, () => {
|
||||||
|
|
Loading…
Reference in New Issue