-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webdav: add cors support for uploading files
Motivation: Most browsers do send a preflight request with OPTION method for security reason. The preflight request help the browser to find out if the main request is allowed by the server. If allowed 200 status code is returned with all the allowed headers. The current webdav implementation lack the neccessary support the OPTION method. Modification: 1. add support for OPTION method 2. make Access-Control-Allow-Origin header configurable Result: Able to upload files with a PUT using the browser. Target: trunk Require-notes: no Require-book: no Acked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de> Acked-by: Paul Millar <paul.millar@desy.de> Reviewed at https://rb.dcache.org/r/9614/
- Loading branch information
Olufemi Adeyemi
committed
Sep 21, 2016
1 parent
c5aa25e
commit 9969b3b
Showing
4 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters