I try to write a SonarQube widget plugin which accesses Jenkins build information by jsonp(json with padding).
This is my html file:
<p id="id"></p>
<script type="text/javascript">
function display(data){
document.getElementById("id").innerHTML = data.number;
}
</script>
<script type="application/javascript" src="http://MYHOST/job/MYJOB/lastBuild/api/json?jsonp=display"> </script>
the html is running fine on my localhost.
But when the html built as a widget plugin in my sonarqube server, the jsonp get error.
Failed to load resource: the server responded with a status of 403 (jsonp forbidden; implement jenkins.security.SecureRequester)
My SonarQube version is 5.6.
Is there any sonarqube web security policy I didn't get it?