From 2b7b63ba834c5cdc71ec3ec517de85eee3a24bc3 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sun, 18 Aug 2019 11:04:12 +0200 Subject: [PATCH] Add Last-Event-ID to allowed CORS headers --- pkg/server/microsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/microsub.go b/pkg/server/microsub.go index d4fa343..b9aaf8e 100644 --- a/pkg/server/microsub.go +++ b/pkg/server/microsub.go @@ -58,7 +58,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, Cache-Control") + w.Header().Add("Access-Control-Allow-Headers", "Authorization, Cache-Control, Last-Event-ID") return }