Skip to content

Commit 4009b0c

Browse files
committed
GH-27: Enable the Httponly for authorization cookie
1 parent 3a82fae commit 4009b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fastapi_oauth2/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ async def token_redirect(self, request: Request, **kwargs) -> RedirectResponse:
132132
value=f"Bearer {access_token}",
133133
max_age=request.auth.expires,
134134
expires=request.auth.expires,
135-
httponly=request.auth.http,
135+
httponly=True,
136136
)
137137
return response
138138

0 commit comments

Comments
 (0)