The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Added PATCH method to CORS headers (#11066)
Jim Heising3f512f5659cf
diff --git a/server.py b/server.pyindex e3bd056d9..ac4f42222 100644--- a/server.py+++ b/server.py@@ -98,7 +98,7 @@ def create_cors_middleware(allowed_origin: str):response = await handler(request)response.headers['Access-Control-Allow-Origin'] = allowed_origin- response.headers['Access-Control-Allow-Methods'] = 'POST, GET, DELETE, PUT, OPTIONS'+ 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'return response