Skip to content

Setting headers after the response starts #35549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

guardrex
Copy link
Collaborator

@guardrex guardrex commented May 29, 2025

Fixes #35544

We have two spots to place guidance ...

  • As you said, in the HTTP context article. Are the two example cases that I provide enough?
  • In the Startup article, where we show how to set headers before the response has started.

I thought we had a remark on this subject somewhere, but I couldn't find anything when I searched.


Internal previews

📄 File 🔗 Preview link
aspnetcore/blazor/components/httpcontext.md aspnetcore/blazor/components/httpcontext
aspnetcore/blazor/fundamentals/startup.md aspnetcore/blazor/fundamentals/startup

@guardrex guardrex self-assigned this May 29, 2025
@guardrex guardrex requested a review from MackinnonBuck May 29, 2025 11:54
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.

Headers can't be set after the response has already started
1 participant