Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Hi All,
I am facing problem in AEM as cloud service.
I am having one servlet which is triggering fine from cloud Author server.
but same is not hitting on publisher server. Request is coming to dispatcher but not going to publisher server when request is initiated from my site page(from browser)
But when I direct hit the servlet from postman “publisher-name/bin/myServlet” I see servlet is passing through dispatcher and then request is going to publisher instance.
Am I missing any configuration in AEM as cloud service publisher instance ?
FYI: Request is post
Thanks
Chetan
¡Resuelto! Ir a solución.
Vistas
Respuestas
Total de me gusta
This issue has been resolved by removing "origin" header from dispatcher header list.
Thanks All for your inputs
Vistas
Respuestas
Total de me gusta
Are you able to whitelist your servlet path in publishers.
Vistas
Respuestas
Total de me gusta
Yes, even it is hitting from postman
Vistas
Respuestas
Total de me gusta
Can you provide request/access logs - are you getting any 403 ? Moreover is there anything you might need to whitelist in the Referrer filer settings?
Vistas
Respuestas
Total de me gusta
Thanks for your input. yes these settings are there. working with adobe team if any specific setting need to put.
Thanks
Chetan
Vistas
Respuestas
Total de me gusta
Most likely the problem is that the path "/bin" is blocked on dispatcher (or even by default on AEM as a Cloud Service publish, not sure).
I would recommend you to bind servlets to resource types as much as possible. Binding to a path is not best practice.
Next: /bin is used by some other servlets (most notably the infamous /bin/wcmcommand), and therefor blocking it completely makes totally sense. Meaning when you want to unblock your servlet, just unblock that specific path.
Vistas
Respuestas
Total de me gusta
Thanks @Jörg_Hoh for your input.
I see in dispatcher logs nothing is blocking .request is passing from dispatcher but not reaching to publisher instance.
getting this response status in dispatcher logs.
response.status =204
Thanks
Chetan
Vistas
Respuestas
Total de me gusta
If it passes the dispatcher, then it should reach AEM. Unless you use mod_proxy and forward it to a different system.
The statuscode 204 also looks a bit strange. Is this a POST request? What parameters are you sending along?
Vistas
Respuestas
Total de me gusta
This issue has been resolved by removing "origin" header from dispatcher header list.
Thanks All for your inputs
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas