feat: add ENABLE_WEBSOCKET_SUPPORT to force socket.io to ignore websocket upgrades
This commit is contained in:
1 parent
698976add0
commit
827c419251
3 files changed
+8
-11
No files matched your search
@@ -810,12 +810,6 @@ ENABLE_MESSAGE_RATING = PersistentConfig(
|
||||
os.environ.get("ENABLE_MESSAGE_RATING", "True").lower() == "true",
|
||||
)
|
||||
|
||||
ENABLE_WEBSOCKET_SUPPORT = PersistentConfig(
|
||||
"ENABLE_WEBSOCKET_SUPPORT",
|
||||
"ui.enable_websocket_support",
|
||||
os.environ.get("ENABLE_WEBSOCKET_SUPPORT", "True").lower() == "true",
|
||||
)
|
||||
|
||||
|
||||
def validate_cors_origins(origins):
|
||||
for origin in origins:
|
||||
|
||||
Reference in new issue
Block a user