Skip to content

Add headers to support nginx proxying #34

Open
@jaykobi

Description

@jaykobi

Hello @singingwolfboy ,

I use a setup where the SSE stream requests are poxied by nginx. This did not work until I added headers to the python response as described here. There is a very similar issue already closed in this repo: #3.

The important part, though, is that the headers must be set by the app server, not in nginx. I created a PR to show you how it could be solved in flask-sse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions