Saturday, October 21, 2017

Test AEM Servlet using Postman - 403 Forbidden error

Issue: Created AEM servlet and testing post request from Postman returns 403 - Forbidden Error.


2. Search for 'Apache Sling Referrer Filter'
3. Remove POST method from the filter. 
4. Select “Allow Empty” and 'Save'
5. Again search for 'Adobe Granite CSRF Filter' 
6. Add your servlet path in 'Excluded Paths' list.

Now you can call your POST method anywhere.

Hope it works..

No comments:

Post a Comment