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