security patch

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

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ sys.path.append(glob_path)
import cm_global
from manager_util import *
version = [2, 55, 4]
version = [2, 55, 5]
version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '')
-7
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;")
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.