Skip to content

WebSocket is not working even though host and origin are same #964

@1zg12

Description

@1zg12

Summary

WebSocket is not working even though host and origin are the same.

Steps to reproduce

What are the steps we should take to reproduce the bug:

  1. Deploy streamlit to any server (non-localhost)
  2. Put a proxy before streamlit
  3. Invoke the streamlit app from proxy server address, as such HOST and ORIGIN will be same when calling streamlit websocket

Expected behavior:

Streamlit should work.

Actual behavior:

WebSocket will not work, complaining about response code 403.

Debug info

  • Streamlit version: 0.50.2
  • Python version: 3.8
  • Using PipEnv
  • OS version:
  • Browser version: Chrome 79.0.3945.117

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions