我正在使用python flask_jwt_extended来处理jwt。我有一个刷新端点(来自文档),如下所示:# token is presentcreate_access_token() function again
# to make a new access token for this identity.= get_jwt_
这是我想要测试的函数 @jwt_required # implementation not included here这会导致错误 > raise NoAuthorizationError("Missing {} Header".format(header_name))
E flask_jwt_extended.exceptions.NoAuthorizationError: M
我正在开发一个登录页面,该页面使用JWT进行授权。授权在后端运行良好。但是,当我试图使用VueJS的axios对页面进行授权时,会发现一个错误,即缺少授权头。我想知道如何将访问令牌传递到前端。flask_sqlalchemy import SQLAlchemy
from flask_cors import CORS
from flask_jwt_extendedimport create_acc