From ad47388d80243703a87fb1e0db80b55ce1ad9317 Mon Sep 17 00:00:00 2001 From: Kevin van Zonneveld Date: Wed, 8 May 2013 15:51:17 +0200 Subject: [PATCH] Allow CORS Final-Length header --- src/cmd/tusd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/tusd/main.go b/src/cmd/tusd/main.go index ae3ffd6..3341c12 100644 --- a/src/cmd/tusd/main.go +++ b/src/cmd/tusd/main.go @@ -56,7 +56,7 @@ func main() { // routes and methods that need it. w.Header().Add("Access-Control-Allow-Origin", "*") w.Header().Add("Access-Control-Allow-Methods", "HEAD,GET,PUT,POST,DELETE") - w.Header().Add("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Content-Range, Content-Disposition") + w.Header().Add("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, Content-Range, Content-Disposition, Final-Length") w.Header().Add("Access-Control-Expose-Headers", "Location, Range, Content-Disposition") if r.Method == "OPTIONS" {