mirror of
https://github.com/EDCD/EDDN.git
synced 2025-06-17 23:51:30 +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
|
# set CORS headers
|
||||||
response.headers['Access-Control-Allow-Origin'] = '*'
|
response.headers['Access-Control-Allow-Origin'] = '*'
|
||||||
response.headers['Access-Control-Allow-Methods'] = 'GET, POST, PUT, OPTIONS'
|
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':
|
if request.method != 'OPTIONS':
|
||||||
# actual request; reply with the actual response
|
# actual request; reply with the actual response
|
||||||
@ -391,5 +392,6 @@ def main():
|
|||||||
keyfile=Settings.KEY_FILE
|
keyfile=Settings.KEY_FILE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user