April 27, 2020
Estimated Post Reading Time ~

org.apache.sling.security.impl.ReferrerFilter Rejected empty referrer header for POST request in AEM

We will receive the following exception while testing the Adobe Experience Manager(AEM) POST Servlets from Rest client.



15.12.2014 22:55:01.434 *INFO* [0:0:0:0:0:0:0:1 [1418664301434] POST /services/EmailServlet HTTP/1.1] org.apache.sling.security.impl.ReferrerFilter Rejected empty
referrer header for POST request to /services/EmailServlet

This error is is due to the Apache Sling Referrer Filter will not allow empty Referer address by default.

For testing purpose, we can allow empty referrer by changing the Apache Sling Referrer Filter.

Apache Sling Referrer Filter configuration
Go to the Felix Console - http://localhost:4502/system/console/configMgr
Search for "Apache Sling Referrer Filter"
Select "Allow Empty"


This should be only enabled for testing purposes in the dev environment.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.