I have developed and deployed react-wp-theme app in wp-engine. I have used simple-jwt-login plugin for user management. Register, Login, sending reset email api calls are working without any issues since those are POST calls.
But when I am trying to delete the user or reset the password using the code I got from email is not working. Bothe DELETE and PUT calls giving 405 error.
simple jwt plugin configurations for DELETE

.htacces file
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
ReactJS code API Call
const deleteHandler = async (e) => {
e.preventDefault();
setLoading(true);
const token = localStorage.getItem("access_token");
axiosInstance
.delete(
apiHost +
`/?rest_route=/simple-jwt-login/v1/users&JWT=${token}&AUTH_KEY=${API}`
)
.then((res) => {
console.log(res);
localStorage.removeItem("access_token");
localStorage.removeItem("userInfo");
setLoading(false);
navigate("/");
})
.catch((err) => {
console.log(err);
setLoading(false);
});
};

