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