在DART路线,要求S服务器? [英] Routes in DART, s server required?
本文介绍了在DART路线,要求S服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我都尝试AngularDART路线,并与聚合物,这个例子一个线路>
I tried both AngularDART routes, and routes with Polymer, this example
但发现,没有工作,一旦我从Dartium直接打开该文件,但完全一旦两个工作,我从DART编辑器中运行他们!
but found, that none is working once I open the file from Dartium directly, but both work perfectly once I run them from Dart editor!
我是做错了!
感谢
推荐答案
我认为这一点是既使用导入HTML的文件,它可以与Web服务器和一些浏览器中运行,比如说在路线Safari浏览器运行平稳无Web服务器,但没有在没有Chrome的服务器上运行,而Chrome显示此错误消息:
I think the point is both using "import html" file, which can run with web server and some browsers,, for example route run smoothly at Safari browser without web server, but did not run without server at Chrome, and Chrome shows this error msg:
Imported resource from origin 'file://' has been blocked from loading by
Cross-Origin Resource Sharing policy: Received an invalid response. Origin 'null'
is therefore not allowed access.
这篇关于在DART路线,要求S服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文