Skip to content

Commit

Permalink
fix(CRSF-token): Error getting Set-Cookie headers
Browse files Browse the repository at this point in the history
  • Loading branch information
dfradehubs committed Sep 11, 2024
1 parent 200ab26 commit f92468d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ func ProxyHandler(target *url.URL, login_post_path string) http.HandlerFunc {
}

// Copy the Set-Cookie headers to the response
w.Header().Del("Set-Cookie")
for _, setCookie := range setCookieHeaders {
w.Header().Del("Set-Cookie")
w.Header().Add("Set-Cookie", setCookie)
}

Expand Down

0 comments on commit f92468d

Please sign in to comment.