cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to hear from you. What do you use Dropbox for?
Close

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: 
Highlighted

Safari embed

Helpful | Level 5

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
Highlighted

Re: Safari embed

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!

View solution in original post

2 Replies 2
Highlighted

Re: Safari embed

Dropboxer
Dropboxer

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.

Highlighted

Re: Safari embed

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!

View solution in original post

Polls
Do you know how to organize your files and folders?
<b>We have created a guide on folder best practice, so you can get organized now <a href="https://www.dropboxforum.com/t5/Business-Tips-tricks/Folder-structure-best-practice/m-p/428456#M39"><u>check it out here</u></a>.</b>

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?