• Hi,
    I have an implementation that uses your YTPlayer. Which has proven to be a very reliable and helpful youtube plugin.
    However recently we have moved to a require.js implementation to handle script dependancies. When the YTPlayer plugin has been shifted into the require.js setup it just stops working. The console has a cors error which I have been unable to resolve.

    “Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.youtube.com/iframe_api?v=3.2.10. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).”
    This has me really confused. Especially when I skim through the YTPlayer code and it uses a wildcard * to define the origin.

    I am obviously missing something obvious here.
    The implementation works fine when require.js is removed from the equation.
    Does anyone have any experience with this issue or ideas to resolve it?
    Any help or advice will be most appreciated 🙂

    • This topic was modified 5 years, 11 months ago by royp84.
    • This topic was modified 5 years, 11 months ago by royp84.

The topic ‘YTPlayer and Require.js’ is closed to new replies.