Browse Source

exposes more headers for CORS in the proxy

deiu 5 years ago
parent
commit
1e0a9e67e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      proxy.go

+ 1 - 1
proxy.go

@@ -16,7 +16,7 @@ func init() {
 			return r
 		}
 		r.Header.Set("Access-Control-Allow-Credentials", "true")
-		r.Header.Set("Access-Control-Expose-Headers", "User, Triples, Location, Link, Vary, Last-Modified, Content-Length")
+		r.Header.Set("Access-Control-Expose-Headers", "User, Location, Link, Vary, Last-Modified, WWW-Authenticate, Content-Length, Content-Type, Accept-Patch, Accept-Post, Allow, Updates-Via, Ms-Author-Via")
 		r.Header.Set("Access-Control-Max-Age", "60")
 		// Drop connection to allow for HTTP/2 <-> HTTP/1.1 compatibility
 		r.Header.Del("Connection")