From 5e523708f246ea838e848251790e9d16adad0e2e Mon Sep 17 00:00:00 2001 From: bgharbi Date: Thu, 26 Oct 2023 15:25:12 +0200 Subject: [PATCH] update whitelist urls --- .github/workflows/netlify-cms.yml | 2 +- workspaces/netlify-cms-auth/src/callback.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/netlify-cms.yml b/.github/workflows/netlify-cms.yml index f9923b9229..7578e8061e 100644 --- a/.github/workflows/netlify-cms.yml +++ b/.github/workflows/netlify-cms.yml @@ -61,4 +61,4 @@ jobs: projectName: starknet-netlify-cms directory: workspaces/netlify-cms/dist gitHubToken: ${{ secrets.GITHUB_TOKEN }} - branch: main + branch: ${{ github.ref_name }} diff --git a/workspaces/netlify-cms-auth/src/callback.ts b/workspaces/netlify-cms-auth/src/callback.ts index 8d52ba6b13..4db0b071ca 100644 --- a/workspaces/netlify-cms-auth/src/callback.ts +++ b/workspaces/netlify-cms-auth/src/callback.ts @@ -67,6 +67,7 @@ function postMessageHTML({ status, data, env }: PostMessageHTMLArgs) { message.origin === 'http://127.0.0.1:1234' || /^https:\\/\\/[-_\\w]+\\.starknet-netlify-cms\\.pages\\.dev$/.test(message.origin) || /^https:\\/\\/[-_\\w]+\\.starknet-netlify-cms-byd\\.pages\\.dev$/.test(message.origin) || + message.origin === 'https://starknet-netlify-cms-byd.pages.dev' || message.origin === '${env.CMS_URL}' );