Hi,

While using http post for cross domain
     var config = {
                    headers: {
                        'contentType': 'application/x-www-form-urlencoded; 
charset=utf-8',
                        'Access-Control-Allow-Origin': '*',
                        'Access-Control-Allow-Methods': 'POST',
                        'response_type': '"code"',
                        'redirect_uri': '"myurl.com"',
                        'client_id': 'xxxxx',
                        'state': '333333',
                        'scope': 'r_basicprofile'
                    }
                }

                
$http.post('https://www.linkedin.com/oauth/v2/authorization', 
config).then(function (response) {
                    $scope.result = response.data;
                }, function (response) {



                });

i am getting the below error

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

Please suggest on it.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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.

Reply via email to