POST servlet not getting called.



Hi Experts,


I have a use case where i need to call the servlet which is registered with resourceType and method POST. Can someone please help me to suggest how can i achieve this. I have to call this on page load itself. Please suggest.


Thanks in advance.

AEM 6.4

Accepted Solutions (1)

Accepted Solutions (1)





If you are testing from an HTTP Client such as postman, you will need to configure the "Apache Sling Referrer Filter" and "Adobe Granite CSRF Filter". Other than that, if your AEM page is making an HTTP Post request, it should be working as expected with only the "Apache Sling Referrer Filter" configured without the CSRF Filter. Check out this tutorial on how to make POST requests to your AEM instance -

What is the AEM Apache Sling Referrer Filter OSGI configuration?


Answers (0)