From c160a3426005a99734ca0e7ad5c30b675e15aa0a Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Tue, 11 Sep 2018 20:53:48 +0200 Subject: [PATCH] Add cache-control header --- cmd/eksterd/microsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/eksterd/microsub.go b/cmd/eksterd/microsub.go index 986529e..689cde3 100644 --- a/cmd/eksterd/microsub.go +++ b/cmd/eksterd/microsub.go @@ -47,7 +47,7 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { if r.Method == http.MethodOptions { w.Header().Add("Access-Control-Allow-Origin", "*") w.Header().Add("Access-Control-Allow-Methods", "GET, POST") - w.Header().Add("Access-Control-Allow-Headers", "Authorization") + w.Header().Add("Access-Control-Allow-Headers", "Authorization, Cache-Control") return }