Last post May 08, 2018 05:24 AM by Fei Han - MSFT
May 07, 2018 11:12 AM|Archana31|LINK
Please let me know if anybody worked on Real time Notification in web API. i have implemented it using SignalR with Hub class but it is gving "CORS" error at client side i.e. in Angular 2.
May 08, 2018 05:24 AM|Fei Han - MSFT|LINK
it is gving "CORS" error at client side
It seems that you try to establish cross-domain connection from your Angular 2 client app, but it causes CORS issue. To solve it, you can try to configure your SignalR hub application to allow the set of origins.
You can check and know how to implement cross-domain connections in SignalR 2 in