Skip to content

Commit

Permalink
add new domain for callback
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatedByBdr committed Sep 22, 2023
1 parent 7c64638 commit db44a34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workspaces/netlify-cms-auth/src/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ function postMessageHTML({ status, data }: PostMessageHTMLArgs) {
const allowedOrigin = (
message.origin === 'http://localhost:1234' ||
message.origin === 'http://127.0.0.1:1234' ||
/^https:\\/\\/[-_\\w]+\\.starknet-netlify-cms-byd\\.pages\\.dev$/.test(message.origin) ||
/^https:\\/\\/[-_\\w]+\\.starknet-netlify-cms\\.pages\\.dev$/.test(message.origin)
);
// starknet-netlify-cms-byd.pages.dev
if (!allowedOrigin) return;
if (message.data !== "authorizing:github") return;
Expand Down

0 comments on commit db44a34

Please sign in to comment.