• Alejandro Garza
  • 0 Points
  • Member since 2015

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
  • 1

We have successfully integrated Google Drive with Salesforce through Server to Server authentication using JWT. We get the images' URL through the files.get service, using the 'webcontentlink' field, and this allows us to display images in a Visualforce page rendered as HTML without any issues. However, when we attempt to add the renderAs="pdf" attribute, the images no longer display correctly. 

We have already added the corresponding URLs to the Remote Site Settings, this process works perfectly for other external images rendered in PDF, but it is not working for this specific case. Please help.
We recently rolled out lightning and anytime Classic UI or Visualforce Page is loaded in Lightning Experience, that part of the page does not load. This affects standard pages such as the ones found in Setup as well as Visualforce pages embedded in Lightning Record pages. This affects only 2 users in all browsers. Salesforce IT won't help us because they say this is a Single Sign-on issue and is not covered for 'standard customers'.

The error in Chrome's developer console says: 
  • Refused to Display: ..okta/com/app/salesforce/... in a frame because it set 'X-Frame-Options' to 'sameorgin'

I understand that the error means the same orgin flag was set in the reponse header, but I don't know how to fix it since this is standard Salesforce embedding (iframe) functionality.  Note, clickjack protection has been turned off.

Has anyone run into this issue?

User-added imageUser-added image