security patch

FIXED: Interferes with the proper functioning of the CORS feature.
This commit is contained in:
Dr.Lt.Data
2024-12-13 18:21:28 +09:00
parent 6ef14f8e36
commit 75047edf8a
3 changed files with 2 additions and 9 deletions

View File

@@ -1321,13 +1321,6 @@ async def load_components(request):
return web.Response(status=400)
args.enable_cors_header = "*"
if hasattr(PromptServer.instance, "app"):
app = PromptServer.instance.app
cors_middleware = server.create_cors_middleware(args.enable_cors_header)
app.middlewares.append(cors_middleware)
def sanitize(data):
return data.replace("<", "&lt;").replace(">", "&gt;")