mirror of
https://github.com/minio/minio.git
synced 2025-04-10 14:37:53 -04:00
cors: Set Access-Control-Allow-Credentials to true (#4185)
This allow browsers to send credentials with preflighted requests.
This commit is contained in:
parent
3a539ce660
commit
d36dd80a8a
@ -278,6 +278,7 @@ func setCorsHandler(h http.Handler) http.Handler {
|
||||
AllowedMethods: defaultAllowableHTTPMethods,
|
||||
AllowedHeaders: []string{"*"},
|
||||
ExposedHeaders: []string{"ETag"},
|
||||
AllowCredentials: true,
|
||||
})
|
||||
return c.Handler(h)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user