locked
Instant Notification for client side(Angular 2) using web api RRS feed

  • Question

  • User1574283200 posted

    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.

    Thanks

    archana.bharti@mail.vinove.com

    Monday, May 7, 2018 11:12 AM

All replies

  • User61956409 posted

    Hi Archana31,

    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 this article.

    With Regards,

    Fei Han

    Tuesday, May 8, 2018 5:24 AM