Skip to content

Commit 7cd1dc1

Browse files
committed
fix linter findings
1 parent 86552e8 commit 7cd1dc1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/trafficcontroller/internal/proxy/doppler_proxy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ var _ = Describe("DopplerProxy", func() {
100100
dopplerProxy.ServeHTTP(recorder, req)
101101

102102
Expect(recorder.Code).To(Equal(http.StatusOK))
103-
Expect(recorder.Header().Get("Set-Cookie")).To(Equal("cookie=monster; Domain=cookieDomain; HttpOnly; Secure"))
103+
Expect(recorder.Header().Get("Set-Cookie")).To(Equal("cookie=monster; Domain=cookieDomain; HttpOnly; Secure; SameSite=Lax"))
104104
})
105105

106106
It("returns a bad request if the form does not parse", func() {

src/trafficcontroller/internal/proxy/set_cookie_handler.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ func (h SetCookieHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
3030
Domain: h.domain,
3131
Secure: true,
3232
HttpOnly: true,
33+
SameSite: http.SameSiteLaxMode,
3334
})
3435
}

0 commit comments

Comments
 (0)