i've got a doGet working but when i follow try to do de doPost, i get a 403, I think it's because the server allways send me the header "x-csrf-token: require", but the strange here is that I desactivated before these lines:
<!-- disabled to make REST work - AUTHN/AUTHZ MUST NOT USE COOKIES! -->
<!--
<filter>
<filter-name>RestCsrfPreventionFilter</filter-name>
<filter-class>org.apache.catalina.filters.RestCsrfPreventionFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>RestCsrfPreventionFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
I read that the approuter take the security, this is my Override post method, I only want to try that it's working :
@Override
protected void doPost( final HttpServletRequest request , final HttpServletResponse response) throws IOException, ServletException {
response.getWriter().write("POST METHOD");
}
But I see in the response header this every time :
I discover that you need to active the authentication in the approuter , but it's still not working for me, this is my approuter code :