Skip to content

Commit

Permalink
loosen CORS requirements on server
Browse files Browse the repository at this point in the history
this fixes some issues with the default configuration of the dev
environment.

can probably entirely remove this, but not right now.
  • Loading branch information
emallson committed Sep 10, 2024
1 parent 9e05430 commit 6ae46ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ app.register(secureSession, {
},
});
app.register(cors, {
origin: [/localhost:3000/, /wowanalyzer.com/],
origin: [
/127\.0\.0\.1:[0-9]{2,5}/,
/localhost:[0-9]{2,5}/,
/wowanalyzer.com/,
],
credentials: true,
});

Expand Down

0 comments on commit 6ae46ca

Please sign in to comment.