Fix missing CORS headers on OPTION responses (#7560)

Broke in #7534.
This commit is contained in:
Erik Johnston 2020-05-22 17:42:39 +01:00 committed by GitHub
parent e5c67d04db
commit 2901f54359
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 1 deletions

View file

@ -452,7 +452,7 @@ class OptionsResource(resource.Resource):
code, response_json_object = _options_handler(request)
return respond_with_json(
request, code, response_json_object, send_cors=False, canonical_json=False,
request, code, response_json_object, send_cors=True, canonical_json=False,
)
def getChildWithDefault(self, path, request):