Skip to main content

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

  • Oct 9, 2023 3:51 PM UTC
  • 6 replies
  • 491 views
  • Translate All

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

Hello 👋,

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

Thanks,
Alex, Box Developer Advocate 🥑

Translate

smartoneinok Box
Forum|alt.badge.img

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

Translate

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

Translate

agentgill
  • Author
  • Participating Frequently
  • Oct 23, 2023 8:34 AM UTC

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

Translate

agentgill
  • Author
  • Participating Frequently
  • Oct 23, 2023 8:35 AM UTC

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

Translate

  • Box Employee
  • Oct 31, 2023 5:13 PM UTC

Following the workaround here Help And Training Community and possibly following Help And Training Community
Should fix the issue without disabling clickjack.

Translate