If you host your webpage using a domain, and your API using another one, you must enable CORS. Checkout this video to learn how to enable CORS in API Gateway.
References:
Integrating your API with HTTP external endpoints: • Set up canary release in 3 steps | Beginne...
API description: https://github.com/learncloudbydoing/...
Produced by: Gabriel Costa Silva
Full disclaimer: Unless clearly stated by the cloud platform (AWS, Azure, etc), cloud services charge usage fees. We do not take any responsibility for any incurring expense you may be charged while trying to follow instructions on our videos.