mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: add custom samesite options to auth cookies (#16885)
Allows controlling `samesite` cookie settings from the deployment config
This commit is contained in:
@@ -1320,7 +1320,7 @@ func (f *FakeIDP) httpHandler(t testing.TB) http.Handler {
|
||||
// requests will fail.
|
||||
func (f *FakeIDP) HTTPClient(rest *http.Client) *http.Client {
|
||||
if f.serve {
|
||||
if rest == nil || rest.Transport == nil {
|
||||
if rest == nil {
|
||||
return &http.Client{}
|
||||
}
|
||||
return rest
|
||||
|
||||
Reference in New Issue
Block a user