I want to allow my users to import file from dropbox and show them in iframe. Using chooser dropin, I can get the share link, but it's not iframable due to 'X-Frame-ORIGIN' header. I don't want the raw file content as I can't convert it to html and show in browser. Is there some url where I get dropbox preview url which is iframable as well.
From some blogs I gathered that changing host in url to dl.dropboxusercontent.com and adding dl=0 parameter we could get a iframable preview url. But this no longer works now.
The Dropbox site at www.dropbox.com doesn't allow iframing, but dl.dropboxusercontent.com does. However, the "preview" is only available on www.dropbox.com, so unfortunately you can't iframe the preview.
The official information about the different parameters you can use is here: