-
Notifications
You must be signed in to change notification settings - Fork 81
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
Error: Uncaught (in promise): Failed to connect. Error: Error during negotiation request #112
Comments
Try this c.withCredentials = true; This fixed it for me. |
Hello I have the same problem on my soution. I have an old Service written in C# with .Net-Framework 4.6.1. I included following packages: "Microsoft.AspNet.Cors" version="5.2.7" My Startup.cs lookes like: And in the Service.cs I started the Hub with following code: Now I want to connect my Angular-App with the Server: Angular 7 app: In the app.module.ts i When I change the Urls to "http://localhost:18277" and run it lokal ConnectionResolver. Resolving... Can me help anyone? Thanks in advance, |
Hi there,
Cannot find a way to make connection from Angular app to ChatHub.
Angular 5 app:
"signalr": "^2.2.3"
"ng2-signalr": "^5.0.0"
app.module.ts -->
.net core 2.0 API
"Microsoft.AspNetCore.SignalR (1.0.0-preview2-final)"
Startup.cs -->
Error message when i try to connect from my angular app to the hub:
Any help would be greatly appreciated!
Thanks in advance,
Sem
The text was updated successfully, but these errors were encountered: