Skip to content

Commit ebd271b

Browse files
committed
FIX: add headers to cors origin
1 parent 6cfb994 commit ebd271b

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

src/main.ts

+17-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,23 @@ async function bootstrap() {
136136
'*',
137137
],
138138
methods: ['GET', 'HEAD', 'PUT', 'PATCH', 'POST', 'DELETE', 'OPTIONS'],
139-
allowedHeaders: ['Content-Type', 'Accept', 'Authorization'],
140-
exposedHeaders: ['Authorization', 'Set-Cookie'],
139+
allowedHeaders: [
140+
'DNT',
141+
'User-Agent',
142+
'X-Requested-With',
143+
'If-Modified-Since',
144+
'Cache-Control',
145+
'Content-Type',
146+
'Range',
147+
'Accept',
148+
'Authorization',
149+
],
150+
exposedHeaders: [
151+
'Authorization',
152+
'Set-Cookie',
153+
'Content-Length',
154+
'Content-Range',
155+
],
141156
credentials: true,
142157
preflightContinue: false,
143158
optionsSuccessStatus: 204,

0 commit comments

Comments
 (0)