demo
def runFlask(port): init() app.config['SECRET_KEY'] = '123456' app.run(port=port, threaded=True) CORS(app, supports_credentials=True)
将会引入问题:取不到flask.g下面的全局变量,可把变量存入redis或者memcached
def runFlask(port): init() app.config['SECRET_KEY'] = '123456' app.run(port=port, threaded=True) CORS(app, supports_credentials=True)
将会引入问题:取不到flask.g下面的全局变量,可把变量存入redis或者memcached