Hi Sander,
I do not think it is a CORS issue because I did have CORS errors in the
browser debugger console. These stopped when I added a grails plugin for
the data server.
Because of the log messages from Tomcat, I do think that is doing its job
so the problem is somewhere inside the angular call and handling the return
data. Of course having said that, it could well be that the structure of
the JSON data returned by the server is the wrong structure for Angular.
If I was to reset the angular app to use in memory web api, is there a way
of showing the JSON that is returned so that I could compare it with the
data that curl receives from the server?
Interestingly, if I use MS Edge browser, then the get call in the angular
code is not reaching tomcat. If I use Firefox it is reaching tomcat.
Using F12 debug console, I get
Exception: Uncaught (in promise): TypeError: heroes is
undefined
So though data is returned from server it is not being handled by the
promise callback. I think.
Regards,
John
--
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.