Failed to execute 'postMessage' on 'DOMWindow': The target origin provided does not match

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided does not match

napapey
Shopify Partner
3 0 1

Hello all,

 

I've got a public app used by many shop owners on Shopify.

Yet on 3 or 4 shops (out of hundreds) i've got this very specific error i dont know how to fix.

Can anyone help or have any clue on what i should check ? I've followed this thread but couldnt find a solution. 

 

App :  https://apps.shopify.com/cowlendar

Screenshot of the error : please check imageCapture d’écran 2022-04-05 à 12.19.30.png

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided
('https://www.myappserver.com') does not match the recipient window's origin 
('http://somecustomerstore.myshopify.com')

 

Replies 4 (4)

TonyMontana
Shopify Partner
1 0 0

Did you find a solution to this? I've been at it for two days. Being new to shopify apps, I'm not sure if it's something I'm doing or if my dev shop and dev app is glitching 🤷‍♂️

napapey
Shopify Partner
3 0 1

No I couldnt find a solution for this. I've tried several things, all of which have failed.

And you ?

dogowner
Shopify Partner
58 5 8

I have this error now too.  This system is very difficult to debug.

 

I think there is more than one way to trigger it.  It seems that my own code doesn't seem to trigger it which is confusing.  My app seems to keep working even after the exception.  Is this exception crashing your apps?

 

I have tried the npm app bridge package == 3.1.1 as well as loading from unpkg.com/@shopify/app-bridge@3 .

 

Seems like a bug in the shopify code itself.

dogowner
Shopify Partner
58 5 8

In my case downgrading to AppBridge 3.1.0 makes this exception stop.