Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
yyyhhh
2 years agoExplorer | Level 4
How to configure the domain to the chooser's frame-ancestor
Hi~I used the chooser's iframe embedding (as shown in the code). However, it's not displaying correctly due to frame-ancestor restrictions. How can I add my domain to frame-ancestor? Is this in the app's setting page? It doesn't seem to work.
Thanks in advance~
const comp = new Dropbox.Chooser({
appKey: "",
onSuccess: () => {
},
onCancel: () => {
},
linkType: "preview",
})
Dropbox.mount(comp, document.getElementById("container"));
2 Replies
- Здравко2 years agoLegendary | Level 20
yyyhhh wrote:... How can I add my domain to frame-ancestor? Is this in the app's setting page? It doesn't seem to work.
...
You have answered to your question already and it should work.
One thing that you missed is Chooser cannot be mounted! Only Dropbox Embedder can be mounted.
Dropbox Chooser may only open in new frame where user can select whatever intended. Setup it as noted here and use as described there. You may need to redesign your page.
Good luck.
- Greg-DB2 years ago
Dropbox Community Moderator
yyyhhh As Здравко said, you'll need to implement the Dropbox Chooser as covered in the documentation.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!
Related Content
- 4 years agoAnonymous