Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 400 on dotnet core + Blazor server application websocket #340

Closed
damianog opened this issue Mar 27, 2020 · 1 comment
Closed

Error 400 on dotnet core + Blazor server application websocket #340

damianog opened this issue Mar 27, 2020 · 1 comment
Labels

Comments

@damianog
Copy link
Contributor

damianog commented Mar 27, 2020

I deployed a dotnet core application based on Blazor that make use of websocket communication.
a simple post on the host-proxy caused an Error 400 page

I am running the docker nginx proxy manager image v2.2.0
I configured my host-proxy by enabling with an SSL certificarte

I managed to fix this strange behavior by editing the template file:

/app/templates/proxy_host.conf

and changed the following line

proxy_set_header Connection "upgrade";

in

proxy_set_header Connection $http_connection;

Than after creating the host-proxy all run perfectly.

Here the origin of solution

aspnet/KestrelHttpServer#1263

@damianog damianog added the bug label Mar 27, 2020
damianog added a commit to damianog/nginx-proxy-manager that referenced this issue Mar 27, 2020
@jc21
Copy link
Member

jc21 commented Apr 5, 2020

Thanks for doing the investigation. This all makes sense. I'll merge soon.

@damianog damianog closed this as completed Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants