From bc86906f481ccd994f6fb41f5f487658335470dc Mon Sep 17 00:00:00 2001 From: Jacob Gunther Date: Sun, 21 Aug 2022 20:08:03 -0500 Subject: [PATCH] Expose cache header in CORS --- src/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.go b/src/main.go index 5cc4b23..13c7bbc 100644 --- a/src/main.go +++ b/src/main.go @@ -53,7 +53,7 @@ func init() { app.Use(cors.New(cors.Config{ AllowOrigins: "*", AllowMethods: "HEAD,OPTIONS,GET", - ExposeHeaders: "Content-Type", + ExposeHeaders: "Content-Type,X-Cache-Time-Remaining", })) }