Skip to content

Commit df58e51

Browse files
committed
fix: api headers
1 parent 92102fc commit df58e51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/api/next.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ module.exports = withTM({
1010
source: '/api/:path*',
1111
headers: [
1212
{ key: 'Access-Control-Allow-Origin', value: '*' },
13-
{ key: 'Access-Control-Allow-Methods', value: 'GET,OPTIONS,PATCH,DELETE,POST,PUT' }
13+
{ key: 'Access-Control-Allow-Methods', value: 'GET,OPTIONS,PATCH,DELETE,POST,PUT' },
14+
{ key: 'Access-Control-Allow-Headers', value: 'Accept, Content-Length, Content-Type' }
1415
]
1516
}
1617
];

0 commit comments

Comments
 (0)