You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Gordon Funk's avatar
Gordon Funk
Helpful | Level 5
5 years ago

Safari embed

I'm embedding a link to a dropbox folder using the code below. It works perfectly well in Firefox, but in Safari it comes up with an error:

 

There's no further javascript errors. Any ideas? (The same error shows up using a simple <a> link as well. Running Safari 13 on a Mac...

 

 dbx.sharingCreateSharedLink({
            path: '/Gord_Test_VR/ARC_RES/{{$photoDir}}'
        }).then(function(data) {
            console.log(data);
            var options = {
                link: data.url,
                file: {
                    zoom: "best" // or "fit"
                },
                folder: {
                    view: "list",
                    headerSize: 'small'
                },

            }
            console.log(Dropbox.isBrowserSupported());
            Dropbox.embed(optionsdDropbox);

        }).catch(function(error) {
            console.error(error);
        });
  • Thanks - as I was creating a simpler test page (w/o security)  I got a different Dropbox message which was - Please enable cookies. I turned off the 'Prevent 3rd party tracking' under teh Safaria Security tab in preferences and dropbox started working properly.

     

    So, the simple solution is to make sure that cookies are turned on.

     

    Thanks for your help!

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Thanks for the report. I can't seem to reproduce this error when I try a folder embed in Safari 13 myself though. Would you be able to share a sample page where this occurs? Feel free to open a ticket here if you'd prefer to share privately.

    • Gordon Funk's avatar
      Gordon Funk
      Helpful | Level 5

      Thanks - as I was creating a simpler test page (w/o security)  I got a different Dropbox message which was - Please enable cookies. I turned off the 'Prevent 3rd party tracking' under teh Safaria Security tab in preferences and dropbox started working properly.

       

      So, the simple solution is to make sure that cookies are turned on.

       

      Thanks for your help!

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    We've updated the Embedder implementation to better handle these cases and improve the error reporting when needed. Unfortunately, due to some of the new cross-site behaviors in some modern browsers we can't always display the content directly (depending on the user's browsers settings and behaviors), but the Embedder should now work more reliably when dealing with these restrictions, including showing some error messaging and a link to the content when it can't be displayed directly. Please give it a try and let us know if you're still seeing anything not working as expected. Thanks!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 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!