cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you want to work on being more organized, your productivity or you want to use AI to make your life easier, we’ve got something for you right 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: 

Safari embed

Safari embed

Gordon Funk
Helpful | Level 5
Go to solution

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:

 

dropbox.png

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);
        });
1 Accepted Solution

Accepted Solutions

Gordon Funk
Helpful | Level 5
Go to solution

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!

View solution in original post

3 Replies 3

Greg-DB
Dropbox Staff
Go to solution

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
Helpful | Level 5
Go to solution

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
Dropbox Staff
Go to solution

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!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Gordon Funk Helpful | Level 5
What do Dropbox user levels mean?