zeplin / storybook-zeplin

Storybook addon to view Zeplin resources in story panel
https://storybook-zeplin.netlify.app
MIT License
115 stars 16 forks source link

Same Origin Error in Chrome #40

Closed jonwilliams-bluescape closed 2 years ago

jonwilliams-bluescape commented 2 years ago

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://app.zeplin.io') does not match the recipient window's origin ('http://localhost:6006').

Our project config is pretty gnarly, so I figured I was doing something wrong. Then I opened storybook in Firefox and everything worked fine.

The Firefox console shows the same message, but does show the corresponding Zeplin addon etc. Chrome behaves as though there's no Zeplin addon registered. So, I'm not 100% sure that Chrome's failure is due to the postMessage, but that's all I have to go on at the moment.

jonwilliams-bluescape commented 2 years ago

Hmm... cleared all cookies, local storage, etc and everything is fine so closing.

mertkahyaoglu commented 2 years ago

@jonwilliams-bluescape Glad you figured it out 😄

umutHatipoglu commented 2 years ago

Hmm... cleared all cookies, local storage, etc and everything is fine so closing.

Im having exactly same problem, clearing cookies and local storages not solve my problem. Any suggestion here @mertkahyaoglu

damjtoh commented 2 years ago

I'm having the same issue, but only when I build storybook, in dev mode works as expected (despite getting the same errors in the console).

prarabdhb commented 2 years ago

@mertkahyaoglu Facing the same issue. https://github.com/mertkahyaoglu/storybook-zeplin/issues/54

Is there a fix for the same?

yuqu commented 2 years ago

Replied about the issue here: https://github.com/mertkahyaoglu/storybook-zeplin/issues/54#issuecomment-1228462813