mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-18 07:52:59 +03:00
Gateway: misc formatting pass
This commit is contained in:
parent
785378a9bc
commit
24c80c3132
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user