Using a proxy

Use Strapi behind a proxy with Nuxt Proxy module

You can use the @nuxtjs/proxy module if you want to proxy your Strapi URL:

nuxt.config.js
export default {
  modules: [
    '@nuxtjs/strapi',
    '@nuxtjs/proxy'
  ],
  proxy: {
    '/api/strapi': {
      target: 'http://localhost:1337',
      pathRewrite: {
        '^/api/strapi': '/'
      }
    }
  },
  strapi: {
    url: '/api/strapi'
  }
}