Try to fix cors
This commit is contained in:
parent
29ae959af7
commit
9fa123489a
@ -18,11 +18,7 @@ def create_app():
|
||||
application = APIFlask(__name__, openapi_blueprint_url_prefix='/api')
|
||||
application.config.from_object("config.ConfigClass")
|
||||
|
||||
CORS(application, resource={
|
||||
r"/*": {
|
||||
"origins": "*"
|
||||
}
|
||||
})
|
||||
CORS(application, resources={r"*": {"origins": "*"}})
|
||||
|
||||
application.app_context().push()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user