Sling Servlet 403 Forbidden Error
AEM 6.5.5
We have a form and we submit the form data to a servlet using post method. We have reactjs and webpack will pack js and added to clientlibs/clientlib-base.
Previously the form submission was working fine but recently it is not working. Even we are getting the same error when we try it from our publish server w ithout via dispatcher.
It works well if we remove POST from FilterMethods in Adobe Granite CSRF Filter config. But we cannot remove this in our prod publish.
In some of the threads they are asking to use cq.jquery but we cannot use cq.jquery in ui.frontend project.
Is there something we can pass additionally in the request header so that the server will honor the request.
It will be helpful if some has solution for it.
