Skip to content

Conversation

@keegan-caruso
Copy link
Contributor

@keegan-caruso keegan-caruso commented Oct 29, 2025

Restrict hosts

Description

Implemented host filtering to restrict connections to localhost outside of development environments. Updated
Program.cs to include AddHostFiltering and UseHostFiltering.

Removed AllowedHosts from appsettings.json as it is now hardcoded. Updated README.md to clarify this behavior.

Fixes #3580

Implemented host filtering to restrict connections to `localhost`
outside of development environments. Updated
`Program.cs` to include `AddHostFiltering` and `UseHostFiltering`.

Removed `AllowedHosts` from `appsettings.json` as it is now
hardcoded. Updated `README.md` to clarify this behavior.
@keegan-caruso keegan-caruso requested a review from a team as a code owner October 29, 2025 18:29
@keegan-caruso keegan-caruso changed the title Restrict hosts Restrict hosts to localhost for sidecar Oct 29, 2025
Copy link
Collaborator

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

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

LTGM
Thanks @keegan-caruso

@keegan-caruso keegan-caruso merged commit 091a71d into master Oct 29, 2025
4 checks passed
@keegan-caruso keegan-caruso deleted the kecaruso/host-filtering-localhost branch October 29, 2025 20:54
This was referenced Nov 19, 2025
This was referenced Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Restrict hosts to local host for sidecar

5 participants