AURA: Ensure CORS allowed origins are strings

This commit is contained in:
Callum Brown 2021-03-06 13:30:31 +00:00
parent fbc76887ad
commit 2fe2f4f31e

View file

@ -909,7 +909,7 @@ def create_app():
app.config["lib"] = _open_library(config) app.config["lib"] = _open_library(config)
# Enable CORS if required # Enable CORS if required
cors = config["aura"]["cors"].get(list) cors = config["aura"]["cors"].as_str_seq(list)
if cors: if cors:
from flask_cors import CORS from flask_cors import CORS