Fix CORS issue by using npm cors package: https://npmjs.org/package/cors