var config = {
headers: {
'contentType': 'application/x-www-form-urlencoded; charset=utf-8',
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'POST',
'response_type': '"code"',
'client_id': 'xxxxx',
'state': '333333',
'scope': 'r_basicprofile'
}
}
$scope.result = response.data;
}, function (response) {
});
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.