表示不允许使用本地IP地址的405方法

时间:2017-08-10 06:56:36

标签: javascript node.js express

使用http://localhost:8090时没关系,但在输入http://192.168.74.128:8090时无效。 enter image description here enter image description here 这是ip地址 enter image description here

这是我的代码,使用mac os:



const express = require('express')
const app = express()

app.get('/', (req, res) => {
    res.send('hello, rcc')
})

app.listen(8090, ()=>{
    console.log('server\'s OK')
})




任何人都可以提供帮助吗?谢谢

enter image description here

0 个答案:

没有答案