You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running Vanna over https with logs enabled debug=True, there is an error as the logs rely on insecure web socket ws:// which is hardcoded vanna/flask/assets.py
To Reproduce
Run Vanna with debug=True over https
Ask question
Check browser terminal for errors:
index-35bab439.js:1 Mixed Content: The page at 'https://XXXXX/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://XXXXX/api/v0/log'. This request has been blocked; this endpoint must be available over WSS.
Expected behavior
Web socket protocol must be adjusted based on page protocol. Instead of hardcoding it there must be a condition added:
E=new WebSocket((window.location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.host + "/api/v0/log")
Desktop (please complete the following information where):
Vanna: [v0.7.5]
The text was updated successfully, but these errors were encountered:
Describe the bug
When running Vanna over https with logs enabled debug=True, there is an error as the logs rely on insecure web socket ws:// which is hardcoded vanna/flask/assets.py
To Reproduce
index-35bab439.js:1 Mixed Content: The page at 'https://XXXXX/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://XXXXX/api/v0/log'. This request has been blocked; this endpoint must be available over WSS.
Expected behavior
Web socket protocol must be adjusted based on page protocol. Instead of hardcoding it there must be a condition added:
E=new WebSocket((window.location.protocol === 'https:' ? 'wss://' : 'ws://') + window.location.host + "/api/v0/log")
Desktop (please complete the following information where):
The text was updated successfully, but these errors were encountered: