Anton great! Angular $http did not send this header. I set config and now
it is working.

2014-10-02 7:29 GMT+02:00 Anton Trapp <[email protected]>:

> Hi!
>
> Check the request (headers like 'XMLHttpRequest' and check the log on the
> backend). I had some troubles that my Rails backend (especially the auth.
> system) did not notice the Ajax calls until I set
>
> angularApp.config(['$httpProvider', ($httpProvider) ->
>     $httpProvider.defaults.headers.common['X-Requested-With'] =
> 'XMLHttpRequest'
>
> in Angular. If you can post what headers are going in and the server log
> we can make better guesses.
>
> Regards,
> Anton
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to