CORS config

This commit is contained in:
hjlarry 2026-01-13 17:50:16 +08:00
parent 8c9276370c
commit ac6b540fd8
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
import socketio
sio = socketio.Server(async_mode="gevent", cors_allowed_origins="*")
from configs import dify_config
sio = socketio.Server(async_mode="gevent", cors_allowed_origins=dify_config.CONSOLE_CORS_ALLOW_ORIGINS)