Skip to content

Commit

Permalink
fix(core): Do allow OPTIONS requests from any source (#3555)
Browse files Browse the repository at this point in the history
  • Loading branch information
janober authored Jun 17, 2022
1 parent db41e2b commit 74e6b06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli/src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2893,6 +2893,8 @@ class App {
return;
}

res.header('Access-Control-Allow-Origin', '*');

ResponseHelper.sendSuccessResponse(res, {}, true, 204);
return;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/WebhookServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export function registerProductionWebhooks() {
return;
}

res.header('Access-Control-Allow-Origin', '*');

ResponseHelper.sendSuccessResponse(res, {}, true, 204);
return;
}
Expand Down

0 comments on commit 74e6b06

Please sign in to comment.