tjallingt/react-youtube

Support for resolving cross origin errors?

laurencefass opened this issue · 1 comments

I'm getting an cross-origin errors:

www-widgetapi.js:928 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('https://next18.syntapse.co.uk').

Given that everyone using this is not going to be running from from the windows origin I assume this is a bug? Is there any cross origin configuration for this package?

edit: as a quick test I tried loading a react-youtube video alongside a react-player. The latter loads fine with no cross origin errors.

I think this is more a problem with an experimental version of Next JS than your package. I have reverted back to stable version and working fine.