fix(handler): add User-Agent to allowed CORS headers

pull/18410/head
Pavel Zavora 2020-06-09 07:09:27 +02:00
parent 61606289db
commit 0e458e7175
1 changed files with 3 additions and 2 deletions

View File

@ -218,8 +218,8 @@ func NewHandler(c Config) *Handler {
"status-head",
"HEAD", "/status", false, true, authWrapper(h.serveStatus),
},
Route{ // Ping
"ping",
Route{ // Health
"health",
"GET", "/health", false, true, authWrapper(h.serveHealth),
},
Route{
@ -1845,6 +1845,7 @@ func cors(inner http.Handler) http.Handler {
`Authorization`,
`Content-Length`,
`Content-Type`,
`User-Agent`,
`X-CSRF-Token`,
`X-HTTP-Method-Override`,
}, ", "))