Skip to content

Conversation

@v1k45
Copy link

@v1k45 v1k45 commented Jun 3, 2025

Problem

When a proxy target URL contains User credentials, proxy middleware does not send request with the authorization header. This can lead to UnAuthorized Error (401) when connecting to upstream server.

Solution

  • Implemented logic to pass the Authorization header to the target if the proxy URL includes user credentials.
  • Added unit tests to verify behavior for both scenarios: with and without user credentials in the proxy URL.
v1k45 added 2 commits June 3, 2025 18:50
- Implemented logic to pass the Authorization header to the target if the proxy URL includes user credentials. - Added unit tests to verify behavior for both scenarios: with and without user credentials in the proxy URL.
…ernals - Add support and test for WebSockect authorization handling - Cleanup
@v1k45 v1k45 force-pushed the v1k45/proxy-auth-fix branch from 0468d61 to 664ceba Compare June 3, 2025 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant