forked from rDrama/rDrama
1
0
Fork 0

fix cookies on localhost

master
Aevann1 2022-10-22 17:26:39 +02:00
parent 2dcf6bcb0f
commit 07228a2708
1 changed files with 2 additions and 1 deletions

View File

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