We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22aeaa0 commit a0e652eCopy full SHA for a0e652e
src/Components/Endpoints/src/RazorComponentEndpointInvoker.cs
@@ -3,6 +3,7 @@
3
4
using System.Buffers;
5
using System.Diagnostics;
6
+using System.Net.Http;
7
using System.Text;
8
using System.Text.Encodings.Web;
9
using Microsoft.AspNetCore.Antiforgery;
@@ -142,7 +143,7 @@ await _renderer.InitializeStandardComponentServicesAsync(
142
143
144
context.Response.Headers.ContentEncoding = "identity";
145
}
- else
146
+ else if (endpoint.Metadata.GetMetadata<ConfiguredRenderModesMetadata>()?.ConfiguredRenderModes.Length == 0)
147
{
148
// Disable token generation on EndpointAntiforgeryStateProvider if we are not streaming.
149
var provider = (EndpointAntiforgeryStateProvider)context.RequestServices.GetRequiredService<AntiforgeryStateProvider>();
0 commit comments