0π
β
It turns out the issue was related to HTTPS/SSL. I needed to set up and use a proxy. I was getting a CORS related issue which only showed up when inspecting the network events in Firefox (Chrome did not show this level of detail for some reason). These are the settings that eventually worked in nuxt.config.js:
axios: {
https: true,
proxy: true,
prefix: '/api/',
},
proxy: {
'/api/': { target: process.env.API_BASE_URL, secure: false, pathRewrite: {'^/api/': ''} },
},
Source:stackexchange.com