WordPress.org

Ready to get started?Download WordPress

Forums

Access-Control-Allow-Origin (2 posts)

  1. Manan
    Member
    Posted 10 months 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
    Member
    Posted 9 months ago #

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

Reply

You must log in to post.

About this Topic