Ask your backend developer to add cross origin like below example @CrossOrigin(origins = "http://localhost:8090")
This is kind of static intialization . if you want to make it dynamic use * in place of http://localhost:8090 then it will be like @CrossOrigin(origins = "*") On Sun, Sep 13, 2020 at 6:35 PM Swapnil <swapnil.wark...@gmail.com> wrote: > *Access to XMLHttpRequest at 'http://localhost:53574/api/User > <http://localhost:53574/api/User>' from origin 'http://localhost:4200 > <http://localhost:4200>' has been blocked by CORS policy: No > 'Access-Control-Allow-Origin' header is present on the requested resource.* > > > zone.js:2969 GET http://localhost:53574/api/User net::ERR_FAILED > > > *Pleas Help Me.* > > *I am using Angular 6.* > > -- > You received this message because you are subscribed to the Google Groups > "Angular and AngularJS discussion" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to angular+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/angular/f370a805-db73-4eee-b08a-8752a815635en%40googlegroups.com > <https://groups.google.com/d/msgid/angular/f370a805-db73-4eee-b08a-8752a815635en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/CAO%2B83E%2B0kJpPAaN5Wzd22bCJqt_RRqpKKvkA5LXQY_J7G3F_Nw%40mail.gmail.com.