Skip to content

Commit

Permalink
Prepare support for partial updates
Browse files Browse the repository at this point in the history
As webdav-client may support it one day. And thus WebDAV-Drive also,
when we manage to implement the upload progress over fetch.

See: perry-mitchell/webdav-client#362, club-1/webdav-drive#65
  • Loading branch information
n-peugnet committed Jan 11, 2024
1 parent e1827d3 commit 807b000
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ server {
if ($request_method = OPTIONS) {
# CORS headers for JS frontend
add_header access-control-allow-origin *;
add_header access-control-allow-methods GET,POST,PUT,DELETE,OPTIONS,PROPFIND,PROPPATCH,MOVE,COPY,MKCOL,LOCK,UNLOCK;
add_header access-control-allow-methods GET,POST,PUT,PATCH,DELETE,OPTIONS,PROPFIND,PROPPATCH,MOVE,COPY,MKCOL,LOCK,UNLOCK;
add_header access-control-allow-credentials true;
add_header access-control-allow-headers authorization,dnt,user-agent,keep-alive,content-type,accept,origin,depth,destination;

# Tell client that this preflight info is valid for 100h
add_header access-control-max-age 360000;

# DAV header
add_header dav 1,2,3,extended-mkcol;
add_header dav 1,2,3,extended-mkcol,sabredav-partialupdate;

# Allways return OK as browsers do not use auth credentials on preflight
return 204;
Expand Down

0 comments on commit 807b000

Please sign in to comment.