Hi,
I tried like the below
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': '22222',
'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.Origin myrul.com is therefore not allowed access. The response
had HTTP status code 404.
Please suggest on this.
--
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.