Tomcat "HTTP Status 403 – Forbidden" on PUT or DELETE REST request
I updated Tomcat from version 9.0.17 to 9.0.65 and I faced a problem with PUT REST request, I got an "HTTP Status 403 – Forbidden" Error. After searching from many posts I found that tomcat has a restricted methods list on its web.xml file, so I just deleted the PUT method there, I don't have "Delete" Web Services so I still restrict it. The list is almost at the end of the file
It worked for me just by modifying that, but another solution I found was to set the parameter "readonly" to "false" on the same file, maybe it works for you.restricted methods /* TRACE DELETE HEAD OPTIONS
default org.apache.catalina.servlets.DefaultServlet debug 0 readonly false listings false 1
After these changes, the server is accepting PUT Request... if it works for you too, celebrate like Kashiyua!!! 😀
Comments
Post a Comment