We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e247f commit 11b1cb4Copy full SHA for 11b1cb4
packages/server/src/app/core.app.ts
@@ -74,7 +74,17 @@ export class CoreApp {
74
}
75
76
private setupMiddleware() {
77
- this.server.use(helmet());
+ this.server.use(
78
+ helmet({
79
+ contentSecurityPolicy: {
80
+ directives: {
81
+ defaultSrc: ["'self'", "'unsafe-inline'", 'data'],
82
+ scriptSrc: ["'self'", "'unsafe-inline'", "'unsafe-eval'"],
83
+ imgSrc: ["'self'", 'data:'],
84
+ },
85
86
+ })
87
+ );
88
this.server.use(cors());
89
this.server.use(express.json());
90
this.server.use(express.urlencoded({ extended: true }));
0 commit comments