Skip to content

Commit

Permalink
update cloudflare pages name -- migration (add callback whitelist) WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
CreatedByBdr committed Sep 14, 2023
1 parent 1df960f commit 139a0fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion workspaces/netlify-cms-auth/src/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ function postMessageHTML({ status, data }: PostMessageHTMLArgs) {
<script>
function receiveMessage (message) {
const allowedOrigin = (
/^https:\\/\\/[-_\\w]+\\.starknet-netlify-cms-byd\\.pages\\.dev$/.test(message.origin) ||
message.origin === 'http://localhost:1234' ||
message.origin === 'http://127.0.0.1:1234' ||
message.origin === 'https://netlify-cms-auth.haim-6b2.workers.dev/' ||
/^https:\\/\\/[-_\\w]+\\.starknet-netlify-cms\\.pages\\.dev$/.test(message.origin)
);
Expand Down

0 comments on commit 139a0fd

Please sign in to comment.