Skip to content

Commit

Permalink
Add CORS headers to confirmSignup endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sowri19 committed Apr 9, 2024
1 parent 2039291 commit 0185b63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/authController.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ export const confirmSignup = async (req, res) => {
secure: true,
path: "/",
})
.set("Access-Control-Allow-Credentials", true)
.set("Access-Control-Allow-Origin", req.headers.origin)
.json({
success: true,
message: "Signup confirmed and user logged in",
Expand Down

0 comments on commit 0185b63

Please sign in to comment.