summaryrefslogtreecommitdiff
path: root/service/http/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/service.go')
-rw-r--r--service/http/service.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/http/service.go b/service/http/service.go
index 527aca1b..f394f6af 100644
--- a/service/http/service.go
+++ b/service/http/service.go
@@ -315,6 +315,10 @@ func addCORSHeaders(w http.ResponseWriter, r *http.Request, options *CORSMiddlew
headers.Set("Access-Control-Allow-Headers", options.AllowedHeaders)
}
+ if options.ExposedHeaders != "" {
+ headers.Set("Access-Control-Expose-Headers", options.ExposedHeaders)
+ }
+
if options.AllowCredentials != nil {
headers.Set("Access-Control-Allow-Credentials", strconv.FormatBool(*options.AllowCredentials))
}