Skip to content

Commit 1b48211

Browse files
committed
fix: csp header
1 parent 7c28dfc commit 1b48211

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ app.use(cors(corsOptions))
2121
app.use(morgan(IS_PROD ? 'combined' : 'dev'))
2222

2323
if (IS_PROD) {
24+
app.set('trust proxy', true)
2425
app.use(
2526
helmet({
2627
contentSecurityPolicy: {

0 commit comments

Comments
 (0)