nuxt-modules / strapi

Strapi Module for Nuxt
https://strapi.nuxtjs.org
MIT License
645 stars 81 forks source link

How delete with proxy? #396

Closed ldiellyoungl closed 6 days ago

ldiellyoungl commented 9 months ago

I try delete row in my table and get 500 error:

DELETE http://10.106.1.211:3001/api/disps/92 500 (Internal Server Error)

READ, CREATE, UPDATE works fine

i have proxy

routeRules: {
    '/api/**': { proxy: {to: 'http://localhost:1337/api/**'} },
  },

strapi: {
    url: '/api',
    prefix: '',
    version: 'v4',
    cookie: {},
    cookieName: 'strapi_jwt',
    auth: {
      populate: "*"
    },
  }
ldiellyoungl commented 6 days ago

just use nginx reverse proxy