Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Manjit S.'s avatar
Manjit S.
New member | Level 1
10 years ago

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

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%2FAuthAsync&state=923c0910-4a2d-4a5d-8093-23468959263f' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

1 Reply

Replies have been turned off for this discussion
  • Richard P.'s avatar
    Richard P.
    Icon for Super User alumni rankSuper User alumni
    10 years ago

    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.

     

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

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!