Skip to content

Commit

Permalink
first pass imp
Browse files Browse the repository at this point in the history
  • Loading branch information
zachglee committed Oct 17, 2023
1 parent ba97659 commit 8b1a5f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit 8b1a5f8

Please sign in to comment.