Skip to content

Commit

Permalink
update cloudflare pages name -- migration (use initial callback) WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatedByBdr committed Sep 14, 2023
1 parent 9c5df14 commit d4c0206
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions workspaces/netlify-cms-auth/src/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ function postMessageHTML({ status, data }: PostMessageHTMLArgs) {
const allowedOrigin = (
message.origin === 'http://localhost:1234' ||
message.origin === 'http://127.0.0.1:1234' ||
message.origin === 'https://0745c69e.starknet-netlify-cms-byd.pages.dev' ||
/^https:\\/\\/[-_\\w]+\\.starknet-netlify-cms\\.pages\\.dev$/.test(message.origin)
/^https:\\\\/\\\\/[-_\\\\w]+\\\\.starknet-netlify-cms\\\\.pages\\\\.dev$/.test(message.origin)
);
if (!allowedOrigin) return;
Expand Down

0 comments on commit d4c0206

Please sign in to comment.