Skip to content

Commit

Permalink
feat: allow requests from the deployed frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldahal committed May 31, 2024
1 parent 7eacfcc commit 1322b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function bootstrap() {

// Enable CORS
const corsOptions: CorsOptions = {
origin: 'http://localhost:5173',
origin: ['http://localhost:5173', 'https://co-edit.netlify.app'],
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
credentials: true,
};
Expand Down

0 comments on commit 1322b46

Please sign in to comment.