When the following fancybox call is called on a button click, the page does not load, instead, the console shows a message like this. 'Refused to display '' in a frame because it set 'X-Frame-Options' to 'sameorigin' . It was loading without error previously.
Any help is appreciated.
$.fancybox.open({
href : thirdpartyUrl
, type : 'iframe'
, maxHeight : maxHeight
, maxwidth : maxwidth
, width : width
, height : height
, autoSize : autoSize
, openEffect : openEffect
,afterClose: function() {
$('#loaderdiv').hide();
}
,iframe: {
scrolling : scrolling,
preload : true
}
});