Skip to content

Commit

Permalink
Merge pull request #2 from Opine-official/development
Browse files Browse the repository at this point in the history
Update CORS allowed origins in Server.ts
  • Loading branch information
aravsanj authored Mar 8, 2024
2 parents 62b1e45 + 15f3edf commit c867514
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/infrastructure/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ interface ServerControllers {
getThreadCommentsByPostController: GetThreadCommentsByPostController;
}

const allowedOrigins = [
'https://localhost:3000',
'https://www.opine.ink',
'https://opine.ink',
];

const corsOptions = {
origin: 'https://localhost:3000',
origin: allowedOrigins,
optionsSuccessStatus: 200,
credentials: true,
};
Expand Down

0 comments on commit c867514

Please sign in to comment.