0

Hi there
I have a html page in which i have flash video and youtube video if borwser detect flash player the flash player vidoe run but if flash player not detect than it play youtube vidoe and the problem is that the iframe not open the youtube video it says Refused to display 'http://www.youtube.com/watch?v=VIDEO-IDfeature=youtu.be' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

"I have remove the video id because i don't want to show the video that why i remove the video id write VIDEO-ID"

I search for this error and find solution to add header at the top of the page but the probelm is that my page is .html and i cann't convert it into php i want to add this header with the help of javascript tell me what should i do now. why it give error of sameorigin means it open the main page inside the iframe

<?php
header('X-Frame-Options: GOFORIT');
?>

waiting for your reply

1
Contributor
1
Reply
5
Views
4 Years
Discussion Span
Last Post by Rizi004
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.