Closed 0x08 closed 10 years ago
Just FYI, I solved this by sending the authentication data as JSON in the POST body and mapping it to an AuthenticationRequest object with a @ResponseBody annotation.
Couldn't reproduce it (and angular was updated meanwhile). Closing.
Hi,
I've been checking out your example and it has helped me understand the technology used a lot better.
I have found one issue however:
The LoginService definition is as follows:
However, the Content-Type header here does not seem to be working. When I look at the actual headers sent over the wire, a different header is sent:
In your application this is not an issue as you use JAXRS annotated resources. However, we are using Spring MVC @Controllers, which require 'application/x-www-form-urlencoded' as Content-Type in order to bind the POST body to @RequestParams.
I think this is an issue in ngResource, I thought I would just let you know this is occurring.