From f430741d6119601e6770d5cb951cdb55c0de3b59 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 8 Mar 2024 18:33:56 -0500 Subject: [PATCH] fix CORS for certain hostnames --- .../src/lib/iframe-messaging-bridge.element.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/studio-web/src/lib/iframe-messaging-bridge.element.ts b/studio-web/src/lib/iframe-messaging-bridge.element.ts index 10a9900..bd9f376 100644 --- a/studio-web/src/lib/iframe-messaging-bridge.element.ts +++ b/studio-web/src/lib/iframe-messaging-bridge.element.ts @@ -10,13 +10,19 @@ const PARENT_ORIGIN_WHITELIST: readonly string[] = [ "https://staging.fakeyou.com", "https://staging.storyteller.ai", "https://feature-mvp--fakeyou.netlify.app", - "https://feature-mvp--storyteller.netlify.app", + "https://feature-mvp--storyteller-ai.netlify.app", "http://dev.fakeyou.com:7000", "http://dev.fakeyou.com:7001", "http://dev.fakeyou.com:7002", - "http://dev.storyteller.com:7000", - "http://dev.storyteller.com:7001", - "http://dev.storyteller.com:7002", + "http://devproxy.fakeyou.com:7000", + "http://devproxy.fakeyou.com:7001", + "http://devproxy.fakeyou.com:7002", + "http://dev.storyteller.ai:7000", + "http://dev.storyteller.ai:7001", + "http://dev.storyteller.ai:7002", + "http://devproxy.storyteller.ai:7000", + "http://devproxy.storyteller.ai:7001", + "http://devproxy.storyteller.ai:7002", "http://localhost:7000", "http://localhost:7001", "http://localhost:7002",