Allow all methods and headers for CORS. It's not enough to just whitelist the origins
@@ -78,7 +78,11 @@ origins = [
'https://search.creativecommons.org'
]
cors = CORS(allow_origins_list=origins)
-api = falcon.API(middleware=[cors.middleware])
+api = falcon.API(
+ middleware=[cors.middleware],
+ allow_all_methods=True,
+ allow_all_headers=True
+)
api.add_route('/', RedocResource())
api.add_route('/swagger.yaml', OpenAPISpecResource())
api.add_route('/search_event', SearchEventResource())
