Skip to content

Commit ead6d90

Browse files
authored
Fix samesite cookie issues
1 parent 7faceca commit ead6d90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
app.config['SESSION_SECRET'] = os.getenv('SESSION_SECRET', os.urandom(64))
2323
app.config['SQLALCHEMY_DATABASE_URI'] = os.getenv('DATABASE_URL', 'sqlite:///data/hello_world.sqlite').replace("postgres://", "postgresql://", 1)
2424
app.config['SQLALCHEMY_ECHO'] = app.config['DEBUG']
25+
app.config['SESSION_COOKIE_SAMESITE'] = "None"
26+
app.config['SESSION_COOKIE_SECURE'] = True
2527

2628
# Setup secure cookie secret
2729
app.secret_key = app.config['SESSION_SECRET']

0 commit comments

Comments
 (0)