1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 22:44:19 +00:00

Fixed lack of JWT initialization

This commit is contained in:
Lorenzo Balugani 2021-04-27 22:48:43 +02:00
parent 06a59dc52a
commit d1f9a89ae3

View file

@ -12,6 +12,10 @@ from flask_jwt_extended import *
from .app import app from .app import app
Base.init_app(app=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) 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 # Routes setup