We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.

Forum Discussion

De L.1's avatar
De L.1
Collaborator | Level 9
8 years ago

BUG: rendering PDF with ?raw=1 not showing in Chrome & Safari

To my surprise I noticed that it isn't possible to embed shared files anymore by using the ?raw=1 parameters as discussed in the Dropbox Help Center.

 

For instance, I am not able to see the following file anymore in Chrome 56.0.2924.87 or 57.0.2987.98:

https://www.dropbox.com/s/qgauf66zeoi816i/___TEST___.pdf?raw=1

 

The Errors that are being thrown by Chrome:

  1. Unrecognized Content-Security-Policy directive 'referrer'.
  2. Failed to load 'https://dl.dropboxusercontent.com/content_link/..../file' as a plugin, because the frame into which the plugin is loading is sandboxed.

 

The issues currently doesn't seem to affect any other browsers like IE, Edge or FF. 
Update: Safari 10.0.3 (Mac Sierra) also seems to be affected

 

Are you are aware of this issue? And will it be solved?

 

 

  • We've had our engineers working on this and the good news is the problem has been fixed. Please try again and you should find that this functionality works correctly.

    Apologies for any inconvenience this caused.
  • cduncan's avatar
    cduncan
    New member | Level 2

    I am getting the same error and additional errors; all our PDF documents that are using the public Dropbox link are having this problem.

     

    1. Failed to load 'https://dl.dropboxusercontent.com/u/{REMOVED}.pdf' as a plugin, because the frame into which the plugin is loading is sandboxed.
    2. Uncaught DOMException: Failed to read the 'cookie' property from 'Document': The document is sandboxed and lacks the 'allow-same-origin' flag.
      at getScrollPos (chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/js/contentscript.js:86:32)
      at init (chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/js/contentscript.js:49:21)
      at chrome-extension://klbibkeccnjlkjkiokjodocebajanakg/js/contentscript.js:268:13

    I'm currently using Chrome 56.0.2924.87

    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff
      Thanks for the reports! We're looking into it. I'll follow up here once I have an update.
      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff
        We've had our engineers working on this and the good news is the problem has been fixed. Please try again and you should find that this functionality works correctly.

        Apologies for any inconvenience this caused.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,875 PostsLatest Activity: 2 months ago
325 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!