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
Shubham Raj 29Shubham Raj 29 

To open External webpage inside iframe without logging in directly

Hi All,
I have to open an External webpage inside iFrame (Inside VF page) and add it to the opportunity detail page. The catch is here that the salesforce logged-in user gets authenticated in the background when he opens the VF page and then the webpage opens without being redirected to the Login page.

 

For this currently, I have been making callouts when the VF page loads to authenticate the user in the background and create the session so that it doesn't ask for credentials but it's not working. I also tried to fetch cookies from callout and creating a fresh cookie in apex and passing it to VF page but it is also not working.

Please suggest.

iframe in VF page