Skip to content

Commit 298e2c3

Browse files
authored
Merge pull request #1214 from trycompai/claudio/fix-file-upload
[dev] [claudfuen] claudio/fix-file-upload
2 parents 1c5db12 + 591faca commit 298e2c3

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

apps/app/next.config.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const config: NextConfig = {
3535
async headers() {
3636
return [
3737
{
38-
// Apply CORS headers to all API routes
38+
// Super permissive CORS for all API routes
3939
source: '/api/:path*',
4040
headers: [
4141
{
@@ -50,13 +50,9 @@ const config: NextConfig = {
5050
key: 'Access-Control-Allow-Headers',
5151
value: 'Content-Type, Authorization, X-Requested-With, Accept, Origin, x-pathname',
5252
},
53-
{
54-
key: 'Access-Control-Allow-Credentials',
55-
value: 'true',
56-
},
5753
{
5854
key: 'Access-Control-Max-Age',
59-
value: '86400', // 24 hours
55+
value: '86400',
6056
},
6157
],
6258
},

0 commit comments

Comments
 (0)