Hi, bro, I’ve got the same 405 error response, did you got any solution on it?
<html>
<head>
<title>405 Not Allowed</title>
</head>
<body>
<center>
<h1>405 Not Allowed</h1>
</center>
<hr>
<center>nginx/1.20.1</center>
</body>
</html>
-
This reply was modified 3 years, 10 months ago by
refiny.
-
This reply was modified 3 years, 10 months ago by
refiny.
When I try to reset password throw PostMan, it always got “405 Not Allowed” error, my request like below.
URL: http://justap.vip/?rest_route=/simple-jwt-login/v1/user/reset_password
Method: PUT
Body:
{
"email": "[email protected]",
"new_password": "111111",
"JWT": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NjEwNDcwOTgsImV4cCI6MTY2MTA1MDY5OCwiZW1haWwiOiIwMTMxOTg1Mjc1MjBAY29pbmNyZWRpdC5uZXR3b3JrIiwiaWQiOjMsInNpdGUiOiJodHRwOlwvXC9qdXN0YXAudmlwIiwidXNlcm5hbWUiOiIwMTMxOTg1Mjc1MjAifQ.3-c7jBTPX2e6XZWem5pDAYMREhLwuAc0nzUn-4eotFU",
"AUTH_CODE": "TEAM"
}
Result:
<html>
<head>
<title>405 Not Allowed</title>
</head>
<body>
<center>
<h1>405 Not Allowed</h1>
</center>
<hr>
<center>nginx</center>
</body>
</html>
This is an new WordPress environment runing at Aliyun Simple Application Server, No matter those parametters put behind url or in the request body, the result is the same.
-
This reply was modified 3 years, 9 months ago by
refiny.
Hey, this has been a long time for me and haven’t moved on. Unfortunately I don’t know the answer to this.
Hello,
Sorry for my late reply.
I believe that apache does not allow PUT by default on your server.
Can you please try to add this in your .htaccess file:
<Limit GET POST PUT DELETE OPTIONS>
Allow from all
</Limit>