cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

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

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

De L.1
Helpful | Level 6

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?

 

 

1 Accepted Solution

Accepted Solutions

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

Greg-DB
Dropboxer
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.

View solution in original post

14 Replies 14

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

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

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

Greg-DB
Dropboxer
Thanks for the reports! We're looking into it. I'll follow up here once I have an update.

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

Greg-DB
Dropboxer
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.

View solution in original post

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

De L.1
Helpful | Level 6

Thanks for your reply, the issue seems to be fixed here!

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

cduncan
New member | Level 2

Same for me, issue resolved!!

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

jdbrown
New member | Level 2

We are having issues opening ?raw=1 links in Chrome.

 

 

This was working fine up until today.

 

If I copy the link to the file, then change ?dl=1 to ?raw=1 and copy & paste it into my navigation bar, it continuously loads the file, but never succeeds in rendering it. I asked another person in our office to test this and they can recreate this 100% of the time just like me.

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

jdbrown
New member | Level 2

It works in Safari and Firefox, just not in Chrome anymore.

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

Greg-DB
Dropboxer

@jdbrown It looks like this may be an issue with Chrome. With what version(s) of Chrome are you seeing this issue?

 

I was able to reproduce the issue with Chrome 61.0.3163.100, but it works again for me in Chrome 62.0.3202.75, so it looks like it may already be fixed in new versions.

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

jdbrown
New member | Level 2

Yea, I probably should have included the version string in my first post, sorry.

 

Chrome version: Version 61.0.3163.100 (Official Build) (64-bit)

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
    guilhermegarcia Explorer | Level 4
  • User avatar
    Greg-DB Dropboxer
  • User avatar
    jdbrown New member | Level 2
What do Dropbox user levels mean?
Need more support?