File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,17 @@ Code v99.99.999
2020
2121-->
2222
23+ ## Unreleased
24+
25+ Code v1.75.1
26+
27+ ### Security
28+
29+ Add an origin check to web sockets to prevent a cross-site hijacking attack that
30+ affects those who use older or niche browsers that do not support SameSite
31+ cookies and those who access code-server under a shared domain with other users
32+ on separate sub-domains.
33+
2334## [ 4.10.0] ( https://github.com/coder/code-server/releases/tag/v4.10.0 ) - 2023-02-15
2435
2536Code v1.75.1
Original file line number Diff line number Diff line change @@ -21,8 +21,7 @@ describe("health", () => {
2121
2222 it ( "/healthz (websocket)" , async ( ) => {
2323 codeServer = await integration . setup ( [ "--auth=none" ] , "" )
24- const ws = await codeServer . ws ( "/healthz" )
25- ws . send ( JSON . stringify ( { event : "health" } ) )
24+ const ws = codeServer . ws ( "/healthz" )
2625 const message = await new Promise ( ( resolve , reject ) => {
2726 ws . on ( "error" , ( err ) => {
2827 console . error ( "[healthz]" , err )
@@ -35,6 +34,7 @@ describe("health", () => {
3534 reject ( error )
3635 }
3736 } )
37+ ws . on ( "open" , ( ) => ws . send ( JSON . stringify ( { event : "health" } ) ) )
3838 } )
3939 ws . terminate ( )
4040 expect ( message ) . toStrictEqual ( { event : "health" , status : "expired" , lastHeartbeat : 0 } )
You can’t perform that action at this time.
0 commit comments