Gateway: misc formatting pass

This commit is contained in:
Athanasius 2021-11-04 12:31:28 +00:00
parent 785378a9bc
commit 24c80c3132
No known key found for this signature in database
GPG Key ID: 8C392035DD80FD62

View File

@ -364,7 +364,8 @@ class EnableCors(object):
# set CORS headers
response.headers['Access-Control-Allow-Origin'] = '*'
response.headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, OPTIONS'
response.headers['Access-Control-Allow-Headers'] = 'Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token'
response.headers['Access-Control-Allow-Headers'] = \
'Origin, Accept, Content-Type, X-Requested-With, X-CSRF-Token'
if request.method != 'OPTIONS':
# actual request; reply with the actual response
@ -391,5 +392,6 @@ def main():
keyfile=Settings.KEY_FILE
)
if __name__ == '__main__':
main()