AngularJS & Spring Security with ROLE_ANONYMOUS still returns 401
问题 We are building an Angular Material application, consuming a RESTful Spring MVC API, with Spring Security & OAUTH2. For testing purpose, we gave ROLE_ANONYMOUS access to our /users endpoint: <intercept-url pattern="/users" method="POST" access="ROLE_ANONYMOUS"/> But when we try to send a JSON by POST, we still get a 401 response from the server. This is not happening with non-angular clients like Postman. If we disable the Spring Security filter, everything works fine. GET requests to the