From 13d3e2c0d9d43218dc38f4aca0d419ca24c9b804 Mon Sep 17 00:00:00 2001 From: bgharbi Date: Thu, 14 Sep 2023 23:42:55 +0200 Subject: [PATCH] update cloudflare pages name -- migration (add callback whitelist) WIP --- workspaces/netlify-cms-auth/src/callback.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspaces/netlify-cms-auth/src/callback.ts b/workspaces/netlify-cms-auth/src/callback.ts index c942792705..d0f924946e 100644 --- a/workspaces/netlify-cms-auth/src/callback.ts +++ b/workspaces/netlify-cms-auth/src/callback.ts @@ -62,7 +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://netlify-cms-auth.haim-6b2.workers.dev/' || + message.origin === 'https://netlify-cms-auth.haim-6b2.workers.dev' || /^https:\\/\\/[-_\\w]+\\.starknet-netlify-cms\\.pages\\.dev$/.test(message.origin) );