mirror of
https://github.com/balzack/databag.git
synced 2025-04-23 18:15:19 +00:00
using auth header for cors
This commit is contained in:
parent
c8a7d51106
commit
8f4bd44c35
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user