diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go index 4a21ea05f..4c8d2ba53 100644 --- a/backend/webdav/webdav.go +++ b/backend/webdav/webdav.go @@ -358,6 +358,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) { if err != nil { return nil, err } + f.srv.SetHeader("Referer", u.String()) if root != "" && !rootIsDir { // Check to see if the root actually an existing file