Skip to content

Commit

Permalink
fix: cors whitelist domain
Browse files Browse the repository at this point in the history
  • Loading branch information
2paperstar authored Jun 23, 2024
1 parent 2b45c4b commit 7f4e3e3
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 @@ -9,7 +9,7 @@ async function bootstrap() {
// set CORS config
const whitelist = [
/https:\/\/.*gistalk.gistory.me/,
/https:\/\/.*gistalk-frontend.pages.dev/,
/https:\/\/.*gistalk-fe.pages.dev/,
];
app.enableCors({
origin: function (origin, callback) {
Expand Down

0 comments on commit 7f4e3e3

Please sign in to comment.