My VisualForce Page Test Code for displaying dashboard -

Code Snippet - Used (Apex:Iframe)

enter image description here

After Clicking on Preview Button In Apex Page-

enter image description here

Error In Console Error


It seems you are trying to embed a Salesforce public site into Visualforce page. To allow the embed you need to perform some setup:

  • Go to: Setup > Develop > Sites. Click on Edit
  • Set the value "Clickjack Protection Level" to "Allow framing by any page"

In case you are trying to do the reverse, you may want to look for "Clickjack Settings"


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.