Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor WASM - Invalid HTTP header error in some versions of Chrome and Edge, but not in Firefox

$
0
0

We are having an error that we aren't able to solve. We are developing a Blazor WASM application that connects to our web API. In our machines (Windows 10) it works fine, but when we tried to deploy it in a different machine (Windows 11) to test it, it fails in Chrome and Edge, while working in Firefox. Apparently the error is a format exception in an HTTP header. We use a custom header to pass a token (GUID). The name only has alphabetical characters, all of them ASCII. I am not sure this custom header is the cause. I changed request.Headers.Add to request.Headers.TryAddWithoutValidation, but the problem persists. Does anyone have any idea of what the problem could be?

Thank you!

Image showing the error message


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>