Skip to content

Commit

Permalink
fix: localhost cors
Browse files Browse the repository at this point in the history
  • Loading branch information
2paperstar committed Jun 5, 2024
1 parent 809ef87 commit 0966dc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ async function bootstrap() {
const whitelist = [
/https:\/\/check-out.paperst.ar/,
/https:\/\/.*check-out.paperst.ar/,
/http:\/\/localhost(:\d+)?/,
];
app.enableCors({
origin: function (origin, callback) {
Expand Down

0 comments on commit 0966dc2

Please sign in to comment.