Skip to content

Commit

Permalink
mở cors cho github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
aycact committed Oct 1, 2024
1 parent f76df54 commit ec482a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ app.set('trust proxy', 1)
app.use(helmet())
app.use(
cors({
origin: ['http://localhost:5173', 'https://bookstore.ayclqt.id.vn'],
origin: ['http://localhost:5173', 'https://bookstore.ayclqt.id.vn', 'https://3v2t.github.io'],
credentials: true,
})
)
Expand Down

2 comments on commit ec482a6

@vercel
Copy link

@vercel vercel bot commented on ec482a6 Oct 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on ec482a6 Oct 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.