Skip to content

Commit

Permalink
Merge pull request #29 from scienmanas/mvp
Browse files Browse the repository at this point in the history
Fix CORS
  • Loading branch information
scienmanas authored Dec 14, 2024
2 parents 283d72d + 4d70d07 commit 09c5064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Website/Backend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const allowedHeaders = ["Content-Type", "Authorization"];

app.use((req: Request, res: Response, next) => {
const origin = req.headers.origin as string | undefined;
console.log(`Request from : ${origin}`);

if (req.url === "/") {
if (origin && allowedOriginsHitPoint.includes(origin))
Expand Down

0 comments on commit 09c5064

Please sign in to comment.