isSecureRequest returns true if the request is over HTTPS (TLS or X-Forwarded-Proto).
(r *http.Request)
| 754 | |
| 755 | // isSecureRequest returns true if the request is over HTTPS (TLS or X-Forwarded-Proto). |
| 756 | func isSecureRequest(r *http.Request) bool { |
| 757 | return r.TLS != nil || r.Header.Get("X-Forwarded-Proto") == "https" |
| 758 | } |
| 759 | |
| 760 | // clearAuthCookies removes auth cookies (matches Node backend). |
| 761 | // Secure must match the original cookie for the browser to clear it. |
no test coverage detected