forked from rDrama/rDrama
1
0
Fork 0

sessions: set cookie domain properly

master
justcool393 2022-10-21 23:39:23 -05:00
parent 62e9ef7009
commit 49b12f220c
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ if not path.isfile(f'/site_settings.json'):
@app.before_request
def before_request():
app.config['SESSION_COOKIE_DOMAIN'] = f'.{request.host}'
if request.host == 'marsey.world' and request.path != '/kofi':
abort(404)