mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 14:37:02 +01:00
Titan session cookies set samesite to None
This commit is contained in:
parent
e2f8189ec1
commit
d43d015527
@ -10,9 +10,10 @@ asyncio_extras
|
|||||||
kombu
|
kombu
|
||||||
redis
|
redis
|
||||||
aioredis
|
aioredis
|
||||||
Flask-Babel
|
Flask-Babel>=1.0.0
|
||||||
patreon
|
patreon
|
||||||
flask-redis
|
flask-redis
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
asyncio_redis
|
asyncio_redis
|
||||||
raven[flask]
|
raven[flask]
|
||||||
|
Werkzeug>=1.0.0
|
||||||
|
@ -38,6 +38,7 @@ app.config['RATELIMIT_STORAGE_URL'] = config["redis-uri"]
|
|||||||
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=3)
|
app.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=3)
|
||||||
app.config['REDIS_URL'] = config["redis-uri"]
|
app.config['REDIS_URL'] = config["redis-uri"]
|
||||||
app.config['MAX_CONTENT_LENGTH'] = 4 * 1024 * 1024 # Limit upload size to 4mb
|
app.config['MAX_CONTENT_LENGTH'] = 4 * 1024 * 1024 # Limit upload size to 4mb
|
||||||
|
app.config['SESSION_COOKIE_SAMESITE'] = "None"
|
||||||
app.secret_key = config['app-secret']
|
app.secret_key = config['app-secret']
|
||||||
|
|
||||||
#sentry.init_app(app)
|
#sentry.init_app(app)
|
||||||
|
Loading…
Reference in New Issue
Block a user