I still can't get a <form> post to SlingPostServlet to create any
content due to AccessDeniedException. I've tried adding the "sudo" form
parameter set to "admin", but that doesn't help either. Any idea what I
might be missing?
Rory Douglas wrote:
Related to my previous post about node creation best practice, I have
a question about authentication.
When I create basic HTML forms that post to the SlingPostServlet, node
creation is denied because I'm logged in as anonymous. I tried first
visiting /system/sling/login & logging in as admin, but my credentials
don't seem to be picked up by the SlingPostServlet.
Do I need to somehow specify that my form resource is protected?
Would this involve adding elements to the web.xml in the launchpad-app
module?