cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out 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: 

Refused to display 'https://www.dropbox.com/1/oauth2/authorize?response_type=code&client_id=m5e…71%2Fapi%2FAccounts%2FAuthAsync&state=923c0910-4a2d-4a5d-8093-23468959263f' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

Refused to display 'https://www.dropbox.com/1/oauth2/authorize?response_type=code&client_id=m5e…71%2Fapi%2FAccounts%2FAuthAsync&state=923c0910-4a2d-4a5d-8093-23468959263f' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

Manjit S.
New member | Level 1

I am using dropbox sdk to login with dropbox and access its files now the situation is i need to show that login page in a bootstrap modal so for this i am using iframe but its giving me the following exception.

Refused to display 'https://www.dropbox.com/1/oauth2/authorize?response_type=code&client_id=m5e…71%2Fapi%2FAccounts%2FAu...' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

1 Reply 1

Re: Refused to display 'https://www.dropbox.com/1/oauth2/authorize?response_type=code&client_id=m5e…71%2Fapi%2FAccounts%2FAuthAsync&state=923c0910-4a2d-4a5d-8093-23468959263f' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

Richard P.
Super User alumni

And the exception is correct - you cannot wrap the Dropbox login or authentication screen in that way, it has to be in its own instance outside of your application.

The entire point of forcing you to show the login or authentication screen is to limit the chances that you have of accessing the users credentials - if you do that in an iframe, then you get full access to their credentials as they type them in and submit them, so its not allowed.

 

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Richard P. Super User alumni
What do Dropbox user levels mean?
Need more support?