Hello Guys, I have been searching all the forums and blogs to find out the recommended approach for implementing an http post request to my website on AEM publish instances. (Mine is a public site and there is no login feature)
Note: This is for a production instance and I don't want to rely on jquery.
Can you please suggest the approach that I should follow in below scenarios.
1. Initiate a server to server post request (from external server to AEM server)
2. Initiate a post request from client (say a form submission on the website)
Appreciate your help here.
Regards,
Anand MN
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
If you do server to server POST call, which makes it more secure than making POST call from client.
But in AEM 'Apache Sling Referrer Filter' configuration make sure the type of request which are allowed from particular domain, so AEM provide one more layer of security. So if you can go for client as well otherwise server side Post call is always advisable if traffic is less otherwise server load will be increased.
Views
Replies
Total Likes
Hi,
If you do server to server POST call, which makes it more secure than making POST call from client.
But in AEM 'Apache Sling Referrer Filter' configuration make sure the type of request which are allowed from particular domain, so AEM provide one more layer of security. So if you can go for client as well otherwise server side Post call is always advisable if traffic is less otherwise server load will be increased.
Views
Replies
Total Likes
Excellent response!
Views
Replies
Total Likes
Dear Arun, To be honest , I doubt if this has answered my question. How will you tackle the CSRF token filter issue here ?
Let me tell you how I have solved my issue.
1. In the "Adobe Grantite CSRF Filter", add my servlet to the exclusion list.
2. Check the Allow Empty in the "Apache Sling Referrer Filter".
With the above 2 changes my post request are working in both scenarios.
Now my doubt is , is this a recommened approach for doing POST request in a production publish instance. How can I have an integration between a non aem system and AEM with POST.
Views
Replies
Total Likes
How to make a simple HTTP POST request to AEM with a HTTP Rest Client, Postman - Sourced Code
This is a reference that I could find .
Regards,
Anand
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies