corydolphin / flask-cors

Cross Origin Resource Sharing ( CORS ) support for Flask
https://flask-cors.corydolphin.com/
MIT License
867 stars 140 forks source link

'CORS' object has no attribute 'handle_exception' #319

Closed pluveto closed 2 years ago

pluveto commented 2 years ago

code:

    app = Flask(__name__)
    app = CORS(app, supports_credentials=True)
    api = Api(app)
    api.add_resource(SummaryResource, '/summary')
    api.add_resource(IndexResource, '/')
    app.run(host=HOST, port=PORT, debug=DEBUG_MODE, load_dotenv=False, use_reloader=False)
pluveto commented 2 years ago

version: flask 2.1.2 cors 3.0.10

pluveto commented 2 years ago

using with Flask-RESTful 0.3.8

pluveto commented 2 years ago

Oh, CORS is not a pipeline, I should not use its ret val