If a user’s browser blocks third-party cookies or if your org enables the Require first-party use of Salesforce cookies setting on the My Domain Setup page, then Visualforce pages in Salesforce Classic have these limitations.
Visualforce pages can’t be loaded in Classic console apps.
Visualforce pages can’t be embedded as Classic home page components or as page layout components.
Visualforce pages can’t be used as Classic dashboard components.
These issues occur because loading an authenticated Visualforce page within an iframe requires a Salesforce session cookie. In Classic, the parent page can use a different domain than the embedded Visualforce page, so the session cookie is treated as a third-party cookie and is blocked.
Note: All unmanaged Visualforce pages are now served on the force.com domain when not accessing a site domain. To find out if this change affects you, see Ensure Access to Your Visualforce Pages in Summer ’24 and Winter ’25.
Several major browsers have already disabled third-party cookies by default, including Mozilla Firefox, Apple Safari, and Brave. In January 2024, Google started a gradual rollout of its Privacy Sandbox initiative, which phases out support for third-party cookies in its Chrome browser and enforces storage partitioning in third-party contexts. However, in July 2024, Google reversed its plans to completely block third-party cookies. Instead, Chrome users can decide whether to block third-party cookies.
Despite Google’s recent reversal, Salesforce moves ahead with its plans to end reliance on third-party cookies, such as moving Setup pages to the new *.salesforce-setup.com domain. Other popular browsers already block third-party cookies by default, and Salesforce expects that many enterprises and users will choose to block third-party cookies due to privacy concerns.
To ensure that embedded Visualforce pages load correctly in these applications, we highly recommend that your org transitions to Lightning Experience and that all users work in the Lightning Experience interface. See How to Transition to Lightning Experience and Salesforce Console in Lightning Experience in Salesforce Help.
Alternatively, if your users still work in Classic, you can override an object’s standard record page with the Visualforce page. See Override an Existing Page with a Visualforce Page in the Visualforce Developer Guide.
As another workaround, you can pursue options that allow users’ browsers to reenable third-party cookies. For example, if your company uses Google Chrome Enterprise through a managed instance, your Chrome administrator can set policies that allow or restrict third-party cookies. See Chrome Enterprise third-party cookie policies on Google’s Privacy Sandbox website.
Note: To use this workaround, you may need to disable the Require first-party use of Salesforce cookies setting in your org unless you allow [*.]force.com with the CookiesAllowedForUrls Google Chrome policy. For more information about this setting, see Test the Impact of Blocked Salesforce Session Cookies in Salesforce Help.
Salesforce Help: Test the Impact of Blocked Salesforce Session Cookies
Salesforce Help: Understand How Google's Privacy Sandbox Initiative Impacts Salesforce
Salesforce Help: Embedded Visualforce page not displayed in record page layout in Classic UI
003786014

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.