mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-22 03:20:29 +03:00
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:
parent
a8b3fc33e1
commit
9359b78301
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user