You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

MathiasRamp's avatar
MathiasRamp
New member | Level 2
3 years ago

Dropbox Embedder problem

Hello,

I have searched the internet in hopes of finding an answer, but there is no quide or earlier discussion that solves my problem. I am trying to embed a folder/pdf to a website.

 

When I try to follow along with the documentation of the embedder, I always get the same error as shown below. In the console i get the

"Refused to display 'https://www.dropbox.com/' in a frame because it set 'X-Frame-Options' to 'deny'."

 

 

Below is my code, I exchanged the key and link for now with "myKey" and "MySharedLink" for privacy reasons

(EDIT: I did this post in a bit of a hurry, the "MySharedLink" is obviously the link to the library, and the link in the href is where i put my shared link)

  • Greg-DB's avatar
    Greg-DB
    3 years ago

    You'll need to add the relevant domain to "Chooser / Saver / Embedder domains", not the "OAuth 2" section.

     

    If you've done so and it's still not working for you, please share a sample page showing the issue so we can look into it for you. (You can open a ticket here if you'd prefer to shared privately.) Thanks!

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Have you registered the correct domain in "Chooser / Saver / Embedder domains" on the app's settings page on the App Console for the app for the app key you're using?

    • MathiasRamp's avatar
      MathiasRamp
      New member | Level 2

      I think so.

      Here is an example when i tried building in a Google Site.

      Correct me if i'm wrong, but i thought i got the domain right?

       

      EDIT: My screenshot shows domains under OAuth 2, but i also tried Choose/Saver/Embedder domains with the same error

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        You'll need to add the relevant domain to "Chooser / Saver / Embedder domains", not the "OAuth 2" section.

         

        If you've done so and it's still not working for you, please share a sample page showing the issue so we can look into it for you. (You can open a ticket here if you'd prefer to shared privately.) Thanks!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

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 or Facebook.

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!