Skip to main content

Salesforce UI Elements from managed package (4.28) - UI components not loading


agentgill

When trying to add Salesforce UI Elements into Lightning Page or Flow - I am seeing this error when opening page or running the flow


Refused to frame 'https://mydomain--mysandbox-box.sandbox.vf.force.com/' because an ancestor violates the following Content Security Policy directives: "frame-ancestor 'self'"


Additional Info: https://developer.box.com/guides/tooling/salesforce-toolkit/ui-elements/

6 replies

smartoneinok Box
Forum|alt.badge.img
  • Senior Developer Advocate
  • 181 replies
  • October 13, 2023

Hello 👋,


Let me look into this further. I’m not sure off the top of my head.


Thanks,

Alex, Box Developer Advocate 🥑


smartoneinok Box
Forum|alt.badge.img
  • Senior Developer Advocate
  • 181 replies
  • October 13, 2023

Can you try turning off clickjack protection and seeing if that works?


This may work and a few other settings within session settings. I’d recommend trying in a sandbox first.


agentgill
  • Author
  • Participating Frequently
  • 6 replies
  • October 23, 2023

Yes turning off clickjack protection works, however I prefer not to turn this off.


Support are suggesting adding Trusted Domain in Sessions Settings and also Trust Domains (CSP)


I’ve added this and still see the error


The domain the managed package is trying to reach is this:


https://mydomain--mysandbox--box.sandbox.vf.force.com/


Worth noting, my org domain is this


https://mydomain--mysandbox.sandbox.vf.force.com


The Box target includes “–box” in the domain


agentgill
  • Author
  • Participating Frequently
  • 6 replies
  • October 23, 2023

Worked but would prefer not to turn off, see other response - thanks


  • Participating Frequently
  • 7 replies
  • October 31, 2023

Following the workaround here Help And Training Community and possibly following Help And Training Community

Should fix the issue without disabling clickjack.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings