Not an Angular problem. See some recent post on this list which mention
CORS.

Some more links etc.
http://stackoverflow.com/questions/20035101/no-access-control-allow-origin-header-is-present-on-the-requested-resource

Adrian

On 5 November 2014 12:50, nirmal patel <[email protected]> wrote:

> Hello ,
>
> I want to fetch record from couchdb.
> As couch db return view as json , i want to render it via angular js
>
> so I want to use $http service to access documents of couch DB via view.\
>
> i have generated documents on couch Db via futon. I have also generated
> view in futon.
>
> now i have link to view like this::
> http://127.0.0.1:5984/testdb/_design/stdinfo/_view/myinfo
>
> opening this url in browser directly will result in ::
>
> {"total_rows":2,"offset":0,"rows":[
> {"id":"9e930242b1d4cbe0bb51a4fc8b007373","key":"hector","value":"CE"},
> {"id":"069b930eed1dd5991dcfe0fa15000676","key":"coleman","value":"IT"}
> ]}
>
>
>
> now i use $http.get to access this in angular
>
>
> firstApp.controller("couchcontroller",function($scope,$http){
>       
> $http.get("http://username:[email protected]:5984/testdb/_design/stdinfo/_view/myinfo";).success(function(response){
>               alert("response");
>               $scope.DBDetails = response.rows;
>       })
> });
>
>
>
> it shows error::  No 'Access-Control-Allow-Origin' header is present on the 
> requested resource.
>
>
> Please help me with this
>
>
>
>
>  --
> 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