Hi Team,
I am trying to create a page with AngularJS which will allow RB user's to
add review group in Review Board(RB) using RB API.
code snippet:
$http({
method: "GET",
url: "http://reviewboar.xyz/api/users/xyz/
<http://reviewboar.xyz/users/xyz/>",
headers: {'Authorization': 'Basic xyzxyzxyzxyz=='}
}).then(function success(response){
$scope.data = response.data;
$scope.status = response.status;
$scope.config = response.config;
$scope.header = responce.header;
}, function error(response){
$scope.status = response.status;
console.log($scope.status);
});
But I am getting CORS error, how can I resolve it ? We have RB in closed
environment and don't need CORS.
Is there a way we can disable it in Review board ? Please provide any
pointer.
Error:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the
remote resource at https://reviewboard.xyz.yu.com/api/
<https://www.google.com/url?q=https%3A%2F%2Fnrbweb-staging.eng.netapp.com%2Fapi%2F&sa=D&sntz=1&usg=AFQjCNE-XHOFYTUFA0dVOar015TNnYMs_w>.
(Reason: CORS header 'Access-Control-Allow-Origin' missing)
Regards,
Satish
--
Supercharge your Review Board with Power Pack:
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons:
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.