Skip to content

Commit d7a5888

Browse files
authored
fix: people getting logged in as each other (#254)
1 parent 787c79e commit d7a5888

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

profiles/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@
7878
# pylint: enable=wrong-import-position
7979

8080

81+
@app.after_request
82+
def set_cache_headers(response):
83+
if "Cache-Control" not in response.headers:
84+
response.headers["Cache-Control"] = "no-store"
85+
response.headers["Vary"] = "Cookie"
86+
return response
87+
88+
8189
@app.route("/", methods=["GET"])
8290
@auth.oidc_auth("default")
8391
@before_request

0 commit comments

Comments
 (0)