How to allow sharable/embedded url with CSP header?


My website is www.foobarexample.com with header

content-security-policy: frame-ancestors ‘self’;

I have a sharable URL http://www.foobarexample.com/#/sharedurl/xyz?somedynamickey that must be accessed by any domain in iframe.

How can I do so?