I am trying to connect to strapi js on localhost:1337 but I am getting cors error on my post request. I researched a lot over it and found some tutorials over how to setup nuxtjs/proxy to avoid this cors issue.
The following is my relevant proxy tag in the nuxt.config.js
proxy: {
'/*': {
target: '[::1]:8080/',
changeOrigin: true,
pathRewrite: { '^/*': '' },
},
},
And the relevant axios tag
axios: { proxy: true },