Skip to content

fix: honor wildcard entries in NO_PROXY lists - #11053

Merged
jasonsaayman merged 3 commits into
axios:v1.xfrom
andrewkernel:fix-no-proxy-wildcard-list-entry
Jul 13, 2026
Merged

jasonsaayman merged 3 commits into
axios:v1.xfrom
andrewkernel:fix-no-proxy-wildcard-list-entry

Conversation

@andrewkernel

@andrewkernel andrewkernel commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes NO_PROXY wildcard handling so * works when it appears as one entry in a comma- or space-separated list, not only when the entire variable is exactly *.

Linked issue

N/A

Changes

  • Treat * as a bypass-all entry during NO_PROXY list matching.
  • Add a focused shouldBypassProxy regression test for mixed wildcard lists.
  • Add a pre-release changelog note.

Checklist

  • Tests added or updated (or N/A with reason)
  • Docs/types updated if public API changed (index.d.ts and index.d.cts) - N/A, no public API/type changes
  • No breaking changes (or called out explicitly above)

Validation

  • npm run test:vitest:unit -- tests/unit/helpers
  • npm run lint
  • npx eslint lib/helpers/shouldBypassProxy.js tests/unit/helpers/shouldBypassProxy.test.js
  • git diff --check HEAD~1..HEAD

🏄


Summary by cubic

Fixes NO_PROXY wildcard handling so * works as an entry in comma- or space-separated lists, bypassing the proxy for all hosts when present. Adds tests for both separators and updates the pre-release changelog.

Description

  • Summary of changes: Treat * as bypass-all when it appears as an entry in NO_PROXY within shouldBypassProxy; add changelog note.
  • Reasoning: Aligns behavior with common NO_PROXY expectations and prevents unexpected proxy usage when lists include *.
  • Additional context: No public API or types changed.

Docs

  • If /docs/ mention NO_PROXY, add that * works within lists (e.g., localhost,*,.example.org or localhost * .example.org bypasses all).

Testing

  • Added unit tests covering mixed wildcard lists for both comma and space separators, including IPv6 cases.
  • No further tests needed.

Semantic version impact

  • Patch (bug fix, no breaking changes).

Written for commit 4661723. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@jasonsaayman jasonsaayman added the commit::fix The PR is related to a bugfix label Jul 13, 2026
@jasonsaayman
jasonsaayman merged commit ff60b43 into axios:v1.x Jul 13, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit::fix The PR is related to a bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants