Add cache-control header
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2018-09-11 20:53:48 +02:00
parent d4035cbdca
commit c160a34260
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -47,7 +47,7 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if r.Method == http.MethodOptions { if r.Method == http.MethodOptions {
w.Header().Add("Access-Control-Allow-Origin", "*") w.Header().Add("Access-Control-Allow-Origin", "*")
w.Header().Add("Access-Control-Allow-Methods", "GET, POST") 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 return
} }