Skip to content

Update HostFilteringOptions.AllowedHosts doc - #70441

Merged
DeagleGross merged 1 commit into
dotnet:mainfrom
DeagleGross:deaglegross-document-host-filtering-wildcards
Nov 11, 2026
Merged

DeagleGross merged 1 commit into
dotnet:mainfrom
DeagleGross:deaglegross-document-host-filtering-wildcards

Conversation

@DeagleGross

Copy link
Copy Markdown
Member

A minor update on AllowedHosts behavior

@DeagleGross DeagleGross self-assigned this Nov 10, 2026
Copilot AI balanced review requested due to automatic review settings November 10, 2026 18:17
@github-actions github-actions Bot added the area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares label Nov 10, 2026
@DeagleGross
DeagleGross enabled auto-merge (squash) November 10, 2026 18:18

Copilot AI 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.

🟢 Approval recommended

There are no active review issues for the documentation-only clarification of allowed-host wildcard behavior.

No open issues 🎉

What changed in this PR

Clarifies the documented behavior of HostFilteringOptions.AllowedHosts without changing runtime behavior.

Changes:

  • Documents that the IPv4 literal 0.0.0.0 and IPv6 literal [::] are treated like *, allowing all non-empty hosts.
File Description
src/​Middleware/​HostFiltering/​src/​HostFilteringOptions.cs Expands the AllowedHosts XML remarks to explain wildcard-equivalent address literals.

Review effort: Balanced

@DeagleGross

Copy link
Copy Markdown
Member Author

/ba-g unrelated failue

@DeagleGross
DeagleGross disabled auto-merge November 11, 2026 10:03
@DeagleGross
DeagleGross merged commit f19abda into dotnet:main Nov 11, 2026
26 of 28 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 10%

No docs needed: comment-only change to the AllowedHosts XML doc in HostFilteringOptions.cs. The API reference is generated from that comment.

Documentation surfaces considered

  • Conceptual article: Not required — Only an XML doc comment on HostFilteringOptions.AllowedHosts changed; no code, API, or default changed. Confident no docs needed.
  • Migration guidance: Not required — No behavior change that upgrading users must act on.
  • Breaking change: Not required — No compatibility impact; comment-only change.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 2a6b2c37 Deployed Nov 11, 2026 by DeagleGross via conclusion #291
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants