Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/actionscript-3/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 无法从JIRA在我的应用程序中调用JIRA Rest API_Angularjs_Http_Jira Rest Api - Fatal编程技术网

Angularjs 无法从JIRA在我的应用程序中调用JIRA Rest API

Angularjs 无法从JIRA在我的应用程序中调用JIRA Rest API,angularjs,http,jira-rest-api,Angularjs,Http,Jira Rest Api,我正在开发AngularJS web应用程序(http://localhost:3000/)在node.js服务器(windows系统)上运行,对于应用程序,我需要访问JIRA REST API(例如http://172.27.209.73:8080/rest/api/2/serverInfo)使用AngularJS服务(http Ajax调用) 现在,当我尝试访问API时,由于跨服务器源问题,可能会发出请求 我现在可以从windows系统访问JIRA url,但每当我尝试对url进行API调用

我正在开发AngularJS web应用程序(
http://localhost:3000/
)在node.js服务器(windows系统)上运行,对于应用程序,我需要访问JIRA REST API(例如
http://172.27.209.73:8080/rest/api/2/serverInfo
)使用AngularJS服务(http Ajax调用)

现在,当我尝试访问API时,由于跨服务器源问题,可能会发出请求

我现在可以从windows系统访问JIRA url,但每当我尝试对url进行API调用时,它都不允许访问url,下面的问题正在显示

“请求的服务器上不存在“访问控制允许来源”标头 资源


JIRA是使用Docker容器安装在Linux系统上的。

try jsonp,可能是@MandeepSingh used jsonp的副本,但出现以下错误拒绝执行来自“My URL”的脚本,因为它的MIME类型(“应用程序/json”)不可执行,并且启用了严格的MIME类型检查。