Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit62dc831

Browse files
authored
fix: use httponly flag on coder_signed_app_token cookie (#18989)
1 parentc4b69bb commit62dc831

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎coderd/workspaceapps/provider.go‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ func ResolveRequest(rw http.ResponseWriter, r *http.Request, opts ResolveRequest
7777
// For subdomain apps, this applies to the entire subdomain, e.g.
7878
// app--agent--workspace--user.apps.example.com
7979
http.SetCookie(rw,opts.CookieCfg.Apply(&http.Cookie{
80-
Name:codersdk.SignedAppTokenCookie,
81-
Value:tokenStr,
82-
Path:appReq.BasePath,
83-
Expires:token.Expiry.Time(),
80+
Name:codersdk.SignedAppTokenCookie,
81+
Value:tokenStr,
82+
Path:appReq.BasePath,
83+
HttpOnly:true,
84+
Expires:token.Expiry.Time(),
8485
}))
8586

8687
returntoken,true

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp