Home > Back-end >  Packaging vue to send a post request to the background response after 405 (FNot charges)
Packaging vue to send a post request to the background response after 405 (FNot charges)

Time:09-25

Front end: vue cil3

The backend: springboot 2

The web server: nginx above 1.15



After everything is ok before packaging, packaging vue send a post request to the background response Failed to load the resource: the server responded with a status of 405 (Not Allowed)
Separation project (note) before and after the end, two projects on a server in the



CodePudding user response:

Wrong 405 expressed the request, such as interface is to specify a post request you may use a get request

CodePudding user response:

reference 1st floor weixin_43869905 response:
405 said request patterns such as interface is to specify all post request you may use a get request
there is no problem before packaging, put the back-end and front-end packaging after server it appears the question, the background is specified in the post

CodePudding user response:

There is a problem that is nginx proxy server configuration

CodePudding user response:

reference weixin_43869905 reply: 3/f

That is nginx proxy server configuration has a problem of

I know nginx server problem ah, to the don't know what specific problems, how should solve

CodePudding user response:

Normally only get the proxy server can only request a static file cannot use post, or interface is defined as the get you and then you use getd callback interface or modify the configuration
  • Related