using auth header for cors

This commit is contained in:
Roland Osborne 2024-09-07 21:09:57 -07:00
parent c8a7d51106
commit 8f4bd44c35

View File

@ -349,7 +349,7 @@ func BasicCredentials(r *http.Request) (string, []byte, error) {
var password []byte
// parse bearer authentication
auth := r.Header.Get("Credentials")
auth := r.Header.Get("Authorization")
token := strings.TrimSpace(strings.TrimPrefix(auth, "Basic"))
// decode basic auth