bhaikaju / mega-front

37 stars 93 forks source link

regarding fetching product details from backend #23

Open jegan31 opened 1 year ago

jegan31 commented 1 year ago

please help me with this one while I fetching product records from the backend in front ti get this error message please help me to solve it

Acess to XMLHttpRequest at 'http://localhost:3000/api/products?limit=10' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

ERROR in node_modules/@angular/common/http/http.d.ts:2801:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgMo dule class.

This likely means that the library (@angular/common/http) which declares HttpClientModule has not been processed correctly by ngcc, or is not compatible with A

ngular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expe cted to be compatible with Ivy.

2801 export declare class HttpClientModule {