1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Rename the cors parameter to something more verbose.

This commit is contained in:
comfyanonymous
2023-04-06 15:24:55 -04:00
parent 48efae1608
commit f84f2508cc
2 changed files with 3 additions and 3 deletions

View File

@@ -57,8 +57,8 @@ class PromptServer():
self.number = 0
middlewares = [cache_control]
if args.cors:
middlewares.append(create_cors_middleware(args.cors))
if args.enable_cors_header:
middlewares.append(create_cors_middleware(args.enable_cors_header))
self.app = web.Application(client_max_size=20971520, middlewares=middlewares)
self.sockets = dict()