Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8f6655e

Browse files
Update app.js
1 parent e6ca9be commit 8f6655e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

‎src/app.js‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,8 @@ app.use(helmet({
2525

2626
// CORS configuration
2727
app.use(cors({
28-
origin: process.env.NODE_ENV === 'production'
29-
? ['https://yourdomain.com']
30-
: ['http://localhost:3000', 'http://localhost:3001',
31-
'http://localhost:5174'
32-
],
33-
credentials: true
28+
origin: '*',
29+
credentials: false
3430
}));
3531

3632
// Compression middleware

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /