sorry-cypress / cy2

Integrate Cypress with alternative cloud services like Sorry Cypress or Currents
https://docs.sorry-cypress.dev/cypress-agent/cy2
GNU General Public License v3.0
32 stars 5 forks source link

Suggestion: Allow ability to add custom headers into cy2 proxy #52

Closed richardmward closed 10 months ago

richardmward commented 1 year ago

Before opening, please confirm:

Environment information

``` N/A ```

Describe the bug

I run a proxy before starting a test run in order to add in an authentication header as part of the request to my sorry cypress director service (which is configured to run behind an OAuth proxy). As cy2 uses a proxy as part of it's solution to reroute requests to an alternative director service, it'd be handy if I could configure custom headers on that proxy service instead of having to run my own additional one.

Expected behavior

N/A

Command and Setup

N/A

Full log and debug output

``` N/A ```
agoldis commented 1 year ago

Good idea...In case there's an existing proxy upstream proxy, we need to use the right headers for the right destinations.

qraleq commented 1 year ago

This is a great proposal! @richardmward Can you please explain how you handle the auth header injection? Thank you!