mirror of https://github.com/langgenius/dify.git
CORS config
This commit is contained in:
parent
8c9276370c
commit
ac6b540fd8
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue