Is it possiable to enable anonymous access to a servlet in author instance?
Hi,
I am currently helping to enhance a function, we are using AEMaaCS. it will do the following:
1. We have a customized form component for users to upload an asset with some other fields
2. The form will send a post call to a servlet, the servlet will:
2.1 Save the uploaded file to a DAM folder using AssetManager
2.2 Create a review task with TaskManager
The function works well when using the author instance to test. However, in the publish instance it does not work.
I already know that in AEMaaCS, the publish instance is read-only, and cannot write files directly into publish DAM.
My question is, is there any way to enable the servlet in the author instance for anonymous access without login for the POST call?
Or is there any way to do it in the servlet layer? i.e. when the publish instance receives the call, run the AssetManager and TaskManager in the author instance?
If so, I can make an Ajax call from the published form to call the author servlet for the upload.
Thank you!