I want to allow only requests from localhost for a specific URL pattern. I tried this so far:
<sec:intercept-url pattern="/blabla/**" access="hasIpAddress('127.0.0.1')" />
But this isn't working and I got the following statement in the log output:
Access is denied (user is anonymous); redirecting to authentication entry point
So my question is, how do I allow anonymous user access from localhost only?