I'm getting the error:

"XMLHttpRequest cannot load http://ws.dev/user/resource. Invalid HTTP 
status code 422."

I'm actually returning a response with http status as 422, that's ok, but 
I'm not able to get the content of the response because of the error in 
XMLHttpRequest error. I'm already using a header "Access-Control-Allow-Origin: 
*". If I try to use a get function of the ngresource and in my response I 
set the http status code as 422, there is no problem, I'm able to get the 
content. The error only occurs in .save function.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to