Easy FancyBox
[resolved] XMLHttpRequest error : Access-Control-Allow-Origin. (5 posts)

  1. franckG
    Posted 4 years ago #


    I have a trouble when I want to open a youtube video with fancy-box.
    I just see the loading animation.

    My console (on chrome) says :
    XMLHttpRequest cannot load http://www.youtube.com/watch?v=ybTg7VmC55E. Origin http://www.domaine.com is not allowed by Access-Control-Allow-Origin.

    I checked the settings, the class...
    I even disabled the loading of some scripts in jquery in the file 'easy-fancybox.php" in the endqueue because they were redundant with some of my theme (LeanBiz d'elegantthemes)

    But if I want to open a picture it works !!

    Any idea ?




  2. RavanH
    Plugin Author

    Posted 4 years ago #

    Hi Franck, do you have a link for me? To the page you are having this issue on, I mean...

  3. franckG
    Posted 4 years ago #


    the url is http://www.linktobe.com

    you can access with admin privilege with the id "test" and the pwd "test".

    the page concerned is "http://www.linktobe.com/references/ameliorer-limage-638" with the text link in the middle of the page "test video".
    Feel free to change the youtube link.

    Thank for your help


  4. RavanH
    Plugin Author

    Posted 4 years ago #

    Salut Franck,

    I had a look and changed the password for the test admin account (to prevent abuse!). Please delete that account after this... And check for any unwarranted changes on your site or theme or plugin files or any strange files uploaded to wp-content/uploads/ or wp-content/plugins/ ... just to be sure. Seriously, your site can be infected in minutes, without you noticing anything.

    Anyway, this is my conclusion: your theme has FancyBox integrated. This conflicts with Easy FancyBox.

    The solution is to either :
    A. use the themes own possibility to display youtube movies by giving the link class="et_video_lightbox" (I did that on the test page) and dump the Easy FancyBox plugin... or ...
    B. edit your theme to strip out all the FancyBox related stuff from the theme and continue using the Easy FancyBox plugin (in un-edited version)

    I'd guess option A would be the easiest but if you need help with option B, you can hire me via http://4visions.nl/en/contact/ :)

  5. franckG
    Posted 4 years ago #

    Salut RavanH

    thank for your help.

    I will explore your "piste" (track).

    have a nice week end


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic