← OSS Labs
axios/axios · OSS Lab

Basic auth dropped on same-origin redirects

Same-origin redirect strips Authorization header

lockNot currently playableNeeds packaging
MediumSecrets & AuthNeeds packaging
OSS Labs are training exercises derived from public open-source bug-fix history. Completing a lab is not an upstream contribution or merged PR. Buglyst is not affiliated with these projects.
58d8a12Source commit
5aa9da0Parent commit
MITLicense
464Files
66,184Visible LOC
~30mEst. time

What this lab trains

checkRepository navigation
checkFailing test reproduction
checkRoot cause tracing
checkMinimal patch reasoning
checkPR-style explanation
checkValidation & error handling

Failing signal

What you’ll see when you run the visible regression test.

SymptomSame-origin redirect strips Authorization headerEntry point hintStart at tests/unit/adapters/http.test.js.

Repo navigation focus

A public-safe starting path for the large repo snapshot.

Start here
  • tests/unit/adapters/http.test.js
Likely area
  • lib/adapters/http.js

PR-style report (preview)

The structured report you produce on accept. This is the format, not a real completion.

differencePR-STYLE REPORT
Sample format
Basic auth dropped on same-origin redirectsaxios/axios

Problem

A regression reproduced from public bug-fix history causes a visible test to fail on the parent snapshot.

Root cause

Written by you, in your own words, after tracing the failing test into the runtime source. (Filled in from your submission — not provided here.)

Fix summary

A minimal patch that makes the visible regression test pass without breaking neighbouring behaviour.

Files changed

  • descriptiontest/<regression>.test.js
  • descriptionlib/<runtime-source>.js

Files inspected

  • descriptiontest/<regression>.test.js
  • descriptionlib/<runtime-source>.js

Tests run

  • terminalVisible regression test
  • terminalHidden edge-case validation

Validation result

Visible checks: pendingHidden validation: pending

Resume-safe summary

Completed an OSS-backed Buglyst debugging lab based on public bug-fix history: reproduced a failing test, traced the root cause, and shipped a minimal patch that passed visible and hidden validation. Not an upstream contribution.

OSS Labs are training exercises derived from public open-source bug-fix history. Completing a lab is not an upstream contribution or merged PR. Buglyst is not affiliated with these projects.