Vue + eggjs browser requests api to report 405 not allowed

when developing locally, there is no problem. After deployment, the front-end access to api reports 405, but access through postman is no problem. Trying egg-cors, does not seem to be work,

want to know if it"s the nginx configuration or the posture of eggjs usage.

Sep.12,2021

nginx configuration

Menu