mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-31 08:40:19 +08:00
Merge a1835b9cd2 into c4a14df9a3
This commit is contained in:
commit
42a4f9ecb2
@ -110,6 +110,7 @@ def create_cors_middleware(allowed_origin: str):
|
||||
response.headers['Access-Control-Allow-Methods'] = 'POST, GET, DELETE, PUT, OPTIONS, PATCH'
|
||||
response.headers['Access-Control-Allow-Headers'] = 'Content-Type, Authorization'
|
||||
response.headers['Access-Control-Allow-Credentials'] = 'true'
|
||||
response.headers['Access-Control-Allow-Private-Network'] = 'true'
|
||||
return response
|
||||
|
||||
return cors_middleware
|
||||
|
||||
Loading…
Reference in New Issue
Block a user