From d1f9a89ae3b27669b3245af1f0dd2a5e31ae914e Mon Sep 17 00:00:00 2001 From: Lorenzo Balugani Date: Tue, 27 Apr 2021 22:48:43 +0200 Subject: [PATCH] Fixed lack of JWT initialization --- code/backend/nest_backend/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/backend/nest_backend/__main__.py b/code/backend/nest_backend/__main__.py index 9e73ebc..86633e9 100644 --- a/code/backend/nest_backend/__main__.py +++ b/code/backend/nest_backend/__main__.py @@ -12,6 +12,10 @@ from flask_jwt_extended import * from .app import app Base.init_app(app=app) +jwt = JWTManager(app) +cors = CORS(app) +app.config['CORS_HEADERS'] = 'Content-Type' + reverse_proxy_app = werkzeug.middleware.proxy_fix.ProxyFix(app=app, x_for=1, x_proto=0, x_host=1, x_port=0, x_prefix=0) # Routes setup