cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dropbox Embedder problem

Dropbox Embedder problem

MathiasRamp
New member | Level 2
Go to solution

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'."

 

MathiasRamp_1-1661763891638.png

 

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)

MathiasRamp_2-1661764151613.png

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

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!

View solution in original post

3 Replies 3

Greg-DB
Dropbox Staff
Go to solution

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
New member | Level 2
Go to solution

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?

MathiasRamp_0-1661848948706.png

 

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

Greg-DB
Dropbox Staff
Go to solution

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!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    MathiasRamp New member | Level 2
What do Dropbox user levels mean?