Gateway: Correct methodS to singular & remove extraneous header

* methods != method
* There shouldn't be any need to manually set
  Access-Control-Allow-Origin headers now.
This commit is contained in:
Athanasius 2021-07-02 17:02:07 +00:00
parent a8b3fc33e1
commit 9359b78301

View File

@ -159,9 +159,8 @@ def parse_and_error_handle(data):
return "FAIL: " + str(validationResults.messages)
@app.route('/upload/', methods=['OPTIONS', 'POST'])
@app.route('/upload/', method=['OPTIONS', 'POST'])
def upload():
response.set_header("Access-Control-Allow-Origin", "*")
try:
# Body may or may not be compressed.
message_body = get_decompressed_message()