我确实按照帖子JIRA Rest API error. Unrecognized token creating a issue提供了如下代码,当我使用POSTMAN时,令牌网址有效,但收到如下错误: https://basde/rest/api/2/issue/JIR-8?callback=jQuery&_=9 401()
$.ajax({
type : "GET",
url:URL,
dataType : "jsonp",
async : false,
headers: {
"X-Atlassian-Token": "Basic Token",
"Content-Type": "application/json",
"Accept": "application/json",
"Cache-Control": "no-cache"
},
error: function( req, status, err ) {
console.log( 'something went wrong', status, err );
},
success : (function(response) {
// Alert Success Message
alert("Melding succesvol ontvangen, bedankt!");
})
});