Avoid API communication headaches by using a proxy. An example in Nuxt.js & API Gateway.
in Nuxt.js
Proxies are almost as old as the internet itself yet still a little mysterious. When developing a single page web application they can be a serious timesaver. I'll show you how just a few lines on code in your Nuxt.js project can help you avoid common problems with single page apps that talk to an API.