Expose cache header in CORS

This commit is contained in:
Jacob Gunther
2022-08-21 20:08:03 -05:00
parent e16f8c38bb
commit bc86906f48

View File

@@ -53,7 +53,7 @@ func init() {
app.Use(cors.New(cors.Config{ app.Use(cors.New(cors.Config{
AllowOrigins: "*", AllowOrigins: "*",
AllowMethods: "HEAD,OPTIONS,GET", AllowMethods: "HEAD,OPTIONS,GET",
ExposeHeaders: "Content-Type", ExposeHeaders: "Content-Type,X-Cache-Time-Remaining",
})) }))
} }