Skip to content

Commit

Permalink
refactor/ add debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
dev2820 committed Aug 27, 2023
1 parent bbefa9e commit 0146b32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ app.use(
];

const domain = ctx.request.header.origin;
console.log(48, domain);
if (!domain || !allowedOrigins.includes(domain)) {
return ctx.throw(403, `${domain} is not a valid origin`);
}
Expand Down

0 comments on commit 0146b32

Please sign in to comment.