mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-10 01:02:56 +08:00
use --comfy-api-base value instead of hardcoded api base address
This commit is contained in:
parent
6a55db0766
commit
434e676915
@ -194,7 +194,7 @@ def create_block_external_middleware():
|
||||
response = await handler(request)
|
||||
connectSrc = "'self' data:"
|
||||
if args.enable_manager:
|
||||
connectSrc += " https://api.comfy.org"
|
||||
connectSrc += " " + args.comfy_api_base
|
||||
response.headers['Content-Security-Policy'] = (
|
||||
"default-src 'self'; "
|
||||
"script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:; "
|
||||
|
||||
Loading…
Reference in New Issue
Block a user