Skip to content

Commit

Permalink
Merge pull request #64 from WoWAnalyzer/cors-loosen
Browse files Browse the repository at this point in the history
loosen CORS requirements on server
  • Loading branch information
emallson authored Sep 10, 2024
2 parents 9e05430 + 6ae46ca commit fc5559e
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 fc5559e

Please sign in to comment.