fix: add missing response headers to CORS handler (#10124)

master
Harshavardhana 4 years ago committed by GitHub
parent b800541fbe
commit 10025bda45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      cmd/api-router.go

@ -322,6 +322,13 @@ func corsHandler(handler http.Handler) http.Handler {
xhttp.ContentEncoding, xhttp.ContentEncoding,
xhttp.ContentLength, xhttp.ContentLength,
xhttp.ContentType, xhttp.ContentType,
xhttp.ContentEncoding,
xhttp.LastModified,
xhttp.ContentLanguage,
xhttp.CacheControl,
xhttp.RetryAfter,
xhttp.AmzBucketRegion,
xhttp.Expires,
"X-Amz*", "X-Amz*",
"x-amz*", "x-amz*",
"*", "*",

Loading…
Cancel
Save