mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: Implement (but not enforce) CSRF for FE requests (#3786)
Future work is to enforce CSRF Co-authored-by: Presley Pizzo <presley@coder.com>
This commit is contained in:
@ -17,13 +17,13 @@ func TestStripCoderCookies(t *testing.T) {
|
||||
"testing=hello; wow=test",
|
||||
"testing=hello; wow=test",
|
||||
}, {
|
||||
"session_token=moo; wow=test",
|
||||
"coder_session_token=moo; wow=test",
|
||||
"wow=test",
|
||||
}, {
|
||||
"another_token=wow; session_token=ok",
|
||||
"another_token=wow; coder_session_token=ok",
|
||||
"another_token=wow",
|
||||
}, {
|
||||
"session_token=ok; oauth_state=wow; oauth_redirect=/",
|
||||
"coder_session_token=ok; oauth_state=wow; oauth_redirect=/",
|
||||
"",
|
||||
}} {
|
||||
tc := tc
|
||||
|
Reference in New Issue
Block a user