From 47781928be4810defc7a336c6af0c41eab3da2b8 Mon Sep 17 00:00:00 2001 From: bgharbi Date: Thu, 14 Sep 2023 23:09:45 +0200 Subject: [PATCH] update cloudflare pages name -- migration (add callback whitelist) WIP --- workspaces/netlify-cms-auth/src/callback.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/workspaces/netlify-cms-auth/src/callback.ts b/workspaces/netlify-cms-auth/src/callback.ts index 2f0313f693c..9189c890a17 100644 --- a/workspaces/netlify-cms-auth/src/callback.ts +++ b/workspaces/netlify-cms-auth/src/callback.ts @@ -62,6 +62,8 @@ function postMessageHTML({ status, data }: PostMessageHTMLArgs) { const allowedOrigin = ( message.origin === 'http://localhost:1234' || message.origin === 'http://127.0.0.1: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) );