Skip to content

Commit df3ee34

Browse files
committed
fix(messaging): staging new origin
1 parent 578f4f3 commit df3ee34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/composables/useStudio.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export const useStudio = () => {
279279
window.addEventListener('message', async (e) => {
280280
// IFRAME_MESSAGING_ALLOWED_ORIGINS format must be a comma separated string of allowed origins
281281
const allowedOrigins = studioConfig?.iframeMessagingAllowedOrigins?.split(',').map((origin: string) => origin.trim()) || []
282-
if (!['https://nuxt.studio', 'https://new.nuxt.studio', 'https://dev.new.nuxt.studio', 'https://dev.nuxt.studio', 'http://localhost:3000', ...allowedOrigins].includes(e.origin)) {
282+
if (!['https://nuxt.studio', 'https://new.nuxt.studio', 'https://new.dev.nuxt.studio', 'https://dev.nuxt.studio', 'http://localhost:3000', ...allowedOrigins].includes(e.origin)) {
283283
return
284284
}
285285

0 commit comments

Comments
 (0)