Access-Control-Allow-Origin (2 posts)

  1. Manan
    Posted 2 years ago #

    I am using WordPress 3.6.1 and jQuery fancyBox for display YouTube videos but I am getting this error:

    XMLHttpRequest cannot load http://www.youtube.com/embed/L9szn1QQfas?autoplay=1. Origin http://localhost is not allowed by Access-Control-Allow-Origin

    I have tried this tutorial How to Enable cors in WordPress but not helpful for me.

    Can someone guide to solve this issue.

  2. vestimir
    Posted 2 years ago #

    Try to change the type of the embed to an iframe from the Fancy Box init settings.

Topic Closed

This topic has been closed to new replies.

About this Topic