function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sreenivasa kallu 1sreenivasa kallu 1 

Not able to display share point website in iFrame

Hi,
     I have VF page is accessing the share point website in iFrame. Currently, it is showing exception message and asking user to open link in new browser window. I am getting problem in latest chrome and IE browsers. could you help me to solve the above problem? 


Thanks.
--sreeni
Best Answer chosen by sreenivasa kallu 1
bob_buzzardbob_buzzard
What exception message do you get? If it's something like Display forbidden by X-Frame-Options you are out of luck. This is the web server telling the browser whether the site may be iframed and the browser will respect this regardless of your wishes:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

All Answers

bob_buzzardbob_buzzard
What exception message do you get? If it's something like Display forbidden by X-Frame-Options you are out of luck. This is the web server telling the browser whether the site may be iframed and the browser will respect this regardless of your wishes:

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
This was selected as the best answer
sreenivasa kallu 1sreenivasa kallu 1
Thanks bob for reply. Message is 'content cannot be dispalyed in frame'. It is related to X-Frame-options. I did not see solutions for this problem.