【问题标题】:Live-Reload in NitrousNitrous 中的 Live-Reload
【发布时间】:2015-09-08 19:19:54
【问题描述】:

我无法在 nitrous.io 上运行的 Ember 应用程序中使用实时重新加载。我收到以下错误消息:

[Report Only] Refused to load the script 
'http://ember-js-126346.nitrousapp.com:49152/livereload.js?snipver=1' 
because it violates the following Content Security Policy directive: 
"script-src 'self' 'unsafe-eval' localhost:49152 0.0.0.0:49152 
localhost:49152 0.0.0.0:49152".

要在此设置中进行实时重新加载,我必须进行哪些更改?

【问题讨论】:

  • 您的端口是否打开,您是否点击了预览>端口?

标签: ember.js nitrousio


【解决方案1】:

尝试更新https://github.com/rwjblue/ember-cli-inject-live-reload 并确保设置EMBER_CLI_INJECT_LIVE_RELOAD_HOST

【讨论】:

  • 我必须如何以及在哪里配置 EMBER_CLI_INJECT_LIVE_RELOAD_HOST?我找不到任何文档。
猜你喜欢
  • 2013-04-20
  • 2013-05-09
  • 2012-01-13
  • 2017-12-21
  • 2018-08-24
  • 2017-07-30
  • 2012-09-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多