If an admin enables clickjack protection for customer Salesforce Visualforce pages with standard headers disabled, the Field Service Visualforce pages will display a blank page or an error will display referencing content failing to load due to a CSP blockage. This error occurs with the map view of the Gantt as well as when trying to view the Health Check page. Issues are also reported when viewing the calendar and skills on a Service Resource record.
Please note clickjack settings can be enabled manually from the Setup pages or auto-enabled on the results screen of the Salesforce health check utility under Security.
The following are instructions to return the Field Service Visualforce pages to normal disable clickjack protection for customer Visualforce pages with headers disabled.
In Classic:
1. Select Setup in the upper right.
2. Search for Session Settings in the Setup menu on the left.
3. Once session settings is selected, navigate to Enable clickjack protection for customer Visualforce pages with headers disabled and deselect the check box.
4. Select Save.
Content will now be displayed correctly.
In Lightning:
1. Select the gear icon in the upper right-hand corner of the screen and select Setup.
2. In the quick find on the left, enter Session Settings.
3. Once session settings is selected, navigate to Enable clickjack protection for customer Visualforce pages with headers disabled and deselect the check box.
4. Select Save.
Content will now be displayed correctly.
Workaround:
If clickjack protection must be enabled within an org and stay active, then you can add "*.force.com" as a trusted site.
Url = *.force.com, Context = Visualforce page
For additional information about clickjack protection and best practices, please review the resources below:
Salesforce Health Check Trailhead
Putting Visualforce on External Domains
Salesforce Security Guide
000380470

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.