'cors' is needed if we're going to use the API from a different domain or port. Without 'cors' we won't be able to connect the API to any other apps, like the React app we're going to develop in the next post. As far as running the API in just this post, 'cors' isn't needed. Hope that helps!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.