Avoiding 403 error with nginx

fercospos

New Member
Hello!

We're running a WCS to load as an iframe on a web the videos stored in some DVRs. We're requested to implement Microsoft Active Directory validation for the users, so we have set up nginx as proxy to serve on port 443 the WCS from 8444. We were getting always a 403 forbiden message. After several attempts and checking the examples from documentation and other sources, I've commented the next section:
if ($http_connection !~* "upgrade") {
return 403;
Now it seems to be working great, both the portal on 443 and the API requests from our web tool.

What are the consequences on removing this "if"?

BR, Fer.
 

Max

Administrator
Staff member
Good day.
This condition is to prevent non websocket connections. If you don't need it, you can remove it.
 
Top