【发布时间】:2015-09-25 19:00:11
【问题描述】:
我正在连接到 localhost 以使用 json 数据。但是,我收到这些错误,如下所示:
我已经尝试过这里列出的解决方案: Violating Content Security Policy directive after ember-cli 0.0.47 upgrade(在我的 environment.js 中添加 contentSecurityPolicy 字段) 还有http://discuss.emberjs.com/t/help-resolving-error-report-only-refused-to-load-the-script/6902
还有内容安全策略错误。
旁注:它能够成功地从 localhost 获取 json 数据(状态为 200 作为响应)但它无法在 ember 上显示
【问题讨论】:
标签: ember.js