Allows all resources

This commit is contained in:
Aaron Louie 2020-05-13 11:00:43 -04:00
parent fbdff7a5e6
commit caf791118f
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ connexion_app.add_api('api.yml')
# Convert list of allowed origins to list of regexes
origins_re = [r"^https?:\/\/%s(.*)" % o.replace('.', '\.') for o in app.config['CORS_ALLOW_ORIGINS']]
logging.getLogger('flask_cors').level = logging.DEBUG
cors = CORS(connexion_app.app, resources={r"/*": {"origins": origins_re}})
cors = CORS(connexion_app.app, origins=origins_re)
@app.cli.command()