AEM 6.3 : CSRF TOKEN REJECTION : SLING POST SERVLET [ hitting from external application ]
Hi all,
Trying to POST data from a external application does not work due to CSRF token rejection
When the POST SERVLET is hitted from external application we recieve the following error in the log:
POST /apps/tools/components/xsrftest/run.html HTTP/1.1] com.adobe.granite.csrf.impl.CSRFFilter isValidRequest: empty CSRF token - rejecting
POST /apps/tools/components/xsrftest/run.html HTTP/1.1] com.adobe.granite.csrf.impl.CSRFFilter doFilter: the provided CSRF token is invalid
How can the external application provide a CSRF token to be that satisfies com.adobe.granite.csrf.impl.CSRFFilter?
In my case the external application is a java project...
NOTE: This error occurred for me when I added authentication for the servlet. But the authentication was working fine for GET method.
Or is it not possible to post data from a external application?
Thanks in advance