尝试创建迭代数据存储时出错

时间:2016-06-15 14:59:04

标签: rally

我试图找回迭代的数据存储来构建类似于迭代计划板的电路板。这是我的代码......

Ext.create('Rally.data.wsapi.Store', {
        model: 'Iteration',
        fetch: true,
        autoLoad: true,
        context: {
            workspace: 'workspace/22050374191',
            project: 'project/27401497157',
            projectScopeUp: false,
            projectScopeDown: false
        },
        listeners: {
            load: this._onIterationsLoaded,
            scope: this
        }
    });

但是我总是遇到以下错误。

XMLHttpRequest cannot load https://rally1.rallydev.com/slm/webservice/v2.0/Project/27401497157?fetch=O…kDays%2CIterationEstimateUnitName%2CReleaseEstimateUnitName%2CTaskUnitName. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:1337' is therefore not allowed access.

我正在成功创建其他数据存储,所以我不认为它是一般配置类型的错误。

1 个答案:

答案 0 :(得分:0)

我发现解决这个问题的方法是清除浏览器缓存的图像和文件(但不是cookie)。在Chrome中,转到设置(chrome:// settings / clearBrowserData),然后选中“缓存的图像和文件”复选框。使用“rally-app-builder run”命令时,我有几次出现此错误,我花了一些时间来实际跟踪它。

清除图片和文件会影响您的Cookie。无论如何,在Chrome中。