Allow CORS on any URL

This commit is contained in:
Joel Collins 2019-09-20 16:22:40 +01:00
parent 1c67b96895
commit 28a49774a9

View file

@ -107,7 +107,7 @@ def uri(suffix, api_version, base=None):
app = Flask(__name__)
app.url_map.strict_slashes = False
CORS(app, resources=r"/api/*")
CORS(app, resources=r"*")
# Make errors more API friendly
handler = JSONExceptionHandler(app)