2015-12-30 46 views
0

我正在尝试写一个简单的Chrome扩展,它与我的Transmission守护进程联系。我写发送HTTP POST到我的服务器一个简单的jQuery代码,但我得到了否认:通过chrome扩展联系传输守护进程 - CORS问题?

XMLHttpRequest cannot load http://79.182.210.103:9091/transmission/rpc. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'chrome-extension://fjdfpjhmdeljfaipicgfjijiiakmmgmf' is therefore not allowed access. The response had HTTP status code 401. 

我如何克服?我可以配置传输守护进程(在OpenElec上运行)来允许这么做,还是有其他解决方法?

回答