我想在我的网络上的几个不同设备上查看我的SPA,因此在我的Grunt文件中,我按照Grunt指示将hostname
更改为'0.0.0.0',我的连接任务/对象现在看起来是这样的:Grunt主机名0.0.0.0访问被拒绝
// The actual grunt server settings
connect: {
options: {
port: 9000,
// Change this to '0.0.0.0' to access the server from outside.
hostname: '0.0.0.0',
livereload: 35729
},
现在,当我运行grunt serve
应用程序打开时http://0.0.0.0:9000/
但是我的应用程序未显示在浏览器,我给出以下错误:
ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: "http://0.0.0.0:9000/"
Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
有谁对我应该如何解决这个问题有任何想法。我曾尝试使用hostname: '*'
,但这并没有做任何事情,但如何相同的错误。
我在OS X 10.9.2
由于发展提前
你可以添加链接到说明这一点的文档吗? – Gimby