-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
SignalR: Content-Type header in GET requests #41378
Comments
Thanks for contacting us. We're moving this issue to the |
This has also been reported previously against asp.net. |
We accept PRs 😃 This one should be fairly straightforward; my biggest concern is that react-native on android should be tested to make sure we don't break it again, as the addition of the header was made for that scenario. |
Not following this one. File a new issues and describe why, I'm not understanding the reasoning here. |
@davidfowl, turns out that the issue I was hinting at (access tokens) has been properly addressed for long polling. This issue is just for the use of Content-Type in a GET operation. Sorry for the confusion. |
Is there an existing issue for this?
Describe the bug
WAF is flagging signalR long polling requests due to them having the Content-Type header on GET requests.
The issues was also report on the old code base: SignalR/SignalR#4373
Expected Behavior
There should be no content-type header for SignalR long polling GET requests.
Steps To Reproduce
Use a long polling TypeScript client to communicate to a signalR hub.
Inspect the long polling requests in the developer tools of the browser and you see that the GET requests have a content type set.
"Content-Type": "text/plain;charset=UTF-8",
Exceptions (if any)
No response
.NET Version
.NET 6
Anything else?
Ideally I would like to see POST requests and then also move the access token from the query string to the body of the request.
The text was updated successfully, but these errors were encountered: