test before push ....
This commit is contained in:
3
main.py
3
main.py
@@ -15,12 +15,13 @@ def create_app():
|
|||||||
]
|
]
|
||||||
CORS(app, supports_credentials=True, origins=origins)
|
CORS(app, supports_credentials=True, origins=origins)
|
||||||
|
|
||||||
|
env = os.environ.get('FLASK_ENV', 'default')
|
||||||
|
|
||||||
if env == "production":
|
if env == "production":
|
||||||
app.config.update(SESSION_COOKIE_SAMESITE="None", SESSION_COOKIE_SECURE=True)
|
app.config.update(SESSION_COOKIE_SAMESITE="None", SESSION_COOKIE_SECURE=True)
|
||||||
else:
|
else:
|
||||||
app.config.update(SESSION_COOKIE_SAMESITE="Lax", SESSION_COOKIE_SECURE=False)
|
app.config.update(SESSION_COOKIE_SAMESITE="Lax", SESSION_COOKIE_SECURE=False)
|
||||||
|
|
||||||
env = os.environ.get('FLASK_ENV', 'default')
|
|
||||||
app.config.from_object(config[env])
|
app.config.from_object(config[env])
|
||||||
|
|
||||||
app.register_blueprint(sse, url_prefix='/stream')
|
app.register_blueprint(sse, url_prefix='/stream')
|
||||||
|
|||||||
Reference in New Issue
Block a user