I am trying to read JSON data from a PHP Restful web service in my Angular 
JS application. The web service returns data when hit from the browser, 
however when executed using http.get method, no data is shown on the HTML 
page. The developer console shows the error "No 
'Access-Control-Allow-Origin' header is present on the requested resource." 
When goggled I got suggestions saying "add this 
'Access-Control-Allow-Origin' header to the web service code". But, can 
this be achieved from the java script code of angular?

-- 
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