AEM API not working in stage environment
I need to create an API in AEM 6.2 for that I wrote a servlet which extends SlingAllMethodsServlet and annotation goes like this :-
@5200613(Servlet.class) @component(immediate = true, metatype = false, label = "XXX") @Properties({ @11377687(name = "sling.servlet.paths", value = { "/bin/XXX/xxxMyAPI" }), @11377687(name = "sling.servlet.methods", value = { "POST" }) })
This API accepts an JSON array and processes it. I deployed this API in local AEM instance and called from Rest Client software and it worked fine however when I deployed it to stage it failed and threw 403 forbidden error. Can anyone out there help fixing this issue.
Please let me know if more information is needed in order to provide a solution.
