-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Jsclient (v.2.0.2) send null data with SSE when jsonp is enabled #2927
Comments
We added support for cross-domain SSE in 2.0.2 but appears it might have an issue here. We'll take a look. |
@kocakden you should not set jsonp to true and everything should work fine. If we need to use jsonp because CORS is not supported, we'll do that in SignalR you don't need to set anything explicitly. We'll consider removing this option in the future versions to avoid any confusion. |
@abnanda1 I stopped using jsonp option and updated my server to set the header values (i.e. Access-Control-Allow-Origin) on response. |
Closing as it appears this was a usage issue. |
Hi,
When I use newest javascript client to connect to my server using SSE and jsonp enabled, the data I sent is received null. I tried the same code with version 2.0.1 and I don't get the same error.
Here is my js code
if I set the jsonp: false or use the old version (2.0.1), the data is sent correctly.
The text was updated successfully, but these errors were encountered: