-3

I'm having an issue with two different pages on the same site. Both are running the same Javascript, line for line... yet one is throwing me errors and one is not. Please see the two following URLs...

http://www.gloprofessional.com/moist-hydration-mist - Click on the play in the left column http://www.gloprofessional.com/info/learn-more/videos/ - Click on any video Link

When clicked, a fancybox link should be triggered, in which a youtube video should play.

Any ideas as to why one works, while another does not? The main URL is running on Magento, while anything under the /info/ is expression engine.

Thank you!

Andrew Slagh
  • 13
  • 1
  • 4
  • 1
    Possible duplicate: [Why am I seeing an “origin is not allowed by Access-Control-Allow-Origin” error here?](http://stackoverflow.com/questions/9310112/why-am-i-seeing-an-origin-is-not-allowed-by-access-control-allow-origin-error) – Boaz Mar 26 '13 at 23:33

2 Answers2

0

One uses xhr(ajax) to load url from youtube and you cannot use xhr from different domain that you are in - and the other using iframe with youtube url which is fine (you have got still errors cause in there with frames permissions btw)

Adidi
  • 5,097
  • 4
  • 23
  • 30
0

Within the second link the contents are loaded within an iframe.

Within the mage site i assume the contents are loaded directly? Use an iframe within the mage fancybox as well and it should work.

scones
  • 3,317
  • 23
  • 34