Browse Source

add headers and restirct domains methods

ming 3 năm trước cách đây
mục cha
commit
e6fdad5516
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api/main.py

+ 1 - 1
api/main.py

@@ -59,7 +59,7 @@ app.add_middleware(
     allow_credentials=True,
     allow_methods=["POST","GET"],
     #allow_headers=["*"],
-    allow_headers = ["Authorization","Accept","Origin","Content-Type","X-LS-CORS-Template","X-LS-Auth-Token","X-LS-Auth-User-Token","Content-Type","X-LS-Sync-Result","X-LS-Sequence","token"],
+    allow_headers = ["Authorization","Accept","accept","Origin","Content-Type","X-LS-CORS-Template","X-LS-Auth-Token","X-LS-Auth-User-Token","Content-Type","X-LS-Sync-Result","X-LS-Sequence","token"],
 )