mirror of
https://github.com/9001/copyparty.git
synced 2026-11-22 01:06:43 +00:00
add cors controls + improve preflight + pw header
This commit is contained in:
1 parent
0be1e43451
commit
741d781c18
6 files changed
+138
-37
No files matched your search
@@ -109,6 +109,11 @@ class HttpSrv(object):
|
||||
zs = os.path.join(self.E.mod, "web", "deps", "prism.js.gz")
|
||||
self.prism = os.path.exists(zs)
|
||||
|
||||
self.mallow = "GET HEAD POST PUT DELETE OPTIONS".split()
|
||||
if not self.args.no_dav:
|
||||
zs = "PROPFIND PROPPATCH LOCK UNLOCK MKCOL COPY MOVE"
|
||||
self.mallow += zs.split()
|
||||
|
||||
if self.args.zs:
|
||||
from .ssdp import SSDPr
|
||||
|
||||
|
||||
Reference in new issue
Block a user