AJAX on Publisher - CQ 5.6.1
Hi,
I am making an AJAX call to a sling servlet on CQ 5.6.1 using the path /bin/fetchlisting like below:
@SlingServlet(paths="/bin/fetchlisting",methods = "POST",metatype=true)public class RetrieveListingServlet extends SlingAllMethodsServlet {The call is being made from javascript like this:
$.ajax({type : 'POST',url : '/bin/fetchlisting',On author the Ajax call is getting executed just fine but on publisher I am getting an error /bin/fetchlisting 404 Not found.
Any help is much appreciated !
Thanks