You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' he

Received Response
39
Views
1
Comments
edited Feb 28, 2017 8:00AM in Digital Assistant and Mobile 1 comment

Summary

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource

Content

$http({method:'GET'

                    ,url:mcsService.getCustomApiUrl("Test/HelloWorldPeople")

                    ,headers:mcsService.getHttpHeaders()})

                .then(function(response){

                    $scope.output = response.data;

                    console.log( $scope.output);

                 })

                .catch(function(err) {

                    console.log('Error calling endpoint /departments: '+err);

                });

            }

I can't get the output when i connected to it please let me know how to resolve the issue.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!