Monthly Archives: February 2022

Difference Between Observables and Promises

For dealing with adaptive data in Angular, we can choose either Promise or Observable. Both get and post methods of HTTP and HttpClient return Observable and it can be converted into Promise using toPromise() method. So, what’s the distinction when they’re both dealing with adaptive data? What actually is the difference? Promise generates a mono Continue Reading »

CORS – React JS

CORS stands for Cross-Origin Resource Sharing. It is basically a mechanism that uses HTTP headers to tell the browser whether a specific web app can share resources with another web app or not. Here Both the web apps should have different origins because if they have the same origin then they can share the resources Continue Reading »