Skip to content

Commit

Permalink
Merge pull request #6 from tagup/zlee/DEV-3545-secure-cokie
Browse files Browse the repository at this point in the history
DEV-3545: secure cookie flag
  • Loading branch information
zachglee authored Oct 18, 2023
2 parents a22413a + 6be91fd commit d6cf20e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Tagup Changelog

## 2023-10-17
Added the `Secure;` flag to all `Set-Cookie` headers streamlit sends. This is to remediate possible vulnerabilities that our pentesters flagged. The `Secure;` flag makes it so the browser will only pass the set cookie over https.

## 2023-06-22
- Removed the use of the `expressionInterpreter` when rendering Vega Lite charts. Using this renderer exposes a bug where a specified x-domain results in charts not rendering correctly. See these threads for more details: https://discuss.streamlit.io/t/time-axis-with-custom-scale/33524 https://github.com/vega/vega/issues/3632
- Pinned `wheel` to 0.40.0 to fix a build error
2 changes: 1 addition & 1 deletion frontend/lib/src/util/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export function setCookie(
): void {
const expirationDate = value ? expiration : new Date()
const expirationStr: string = expirationDate
? `expires=${expirationDate.toUTCString()};`
? `expires=${expirationDate.toUTCString()}; Secure;`
: ""
document.cookie = `${name}=${value};${expirationStr}path=/`
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "streamlit",
"version": "1.26.0.dev1",
"version": "1.26.0.dev2",
"private": true,
"workspaces": [
"app",
Expand Down
2 changes: 1 addition & 1 deletion lib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

THIS_DIRECTORY = Path(__file__).parent

VERSION = "1.26.0.dev1" # PEP-440
VERSION = "1.26.0.dev2" # PEP-440

NAME = "streamlit"

Expand Down

0 comments on commit d6cf20e

Please sign in to comment.