From c563ed70efb065959f3a771b6f4d6fe9089dfad2 Mon Sep 17 00:00:00 2001 From: Julian Berkner Date: Wed, 27 May 2020 12:29:53 +0200 Subject: [PATCH] to be able to handle the header, it should be exposed as well... --- pkg/handler/unrouted_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/handler/unrouted_handler.go b/pkg/handler/unrouted_handler.go index de66c40..861eaac 100644 --- a/pkg/handler/unrouted_handler.go +++ b/pkg/handler/unrouted_handler.go @@ -227,7 +227,7 @@ func (handler *UnroutedHandler) Middleware(h http.Handler) http.Handler { } else { // Actual request - header.Add("Access-Control-Expose-Headers", "Upload-Offset, Location, Upload-Length, Tus-Version, Tus-Resumable, Tus-Max-Size, Tus-Extension, Upload-Metadata, Upload-Defer-Length, Upload-Concat") + header.Add("Access-Control-Expose-Headers", "Upload-Offset, Location, Upload-Length, Tus-Version, Tus-Resumable, Tus-Max-Size, Tus-Extension, Upload-Metadata, Upload-Defer-Length, Upload-Concat, X-pre-finish-response") } }