ee
This commit is contained in:
4
app.js
4
app.js
@@ -10,8 +10,6 @@ import http from "http";
|
|||||||
|
|
||||||
const app = express()
|
const app = express()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//解决跨域
|
//解决跨域
|
||||||
app.use((req, res, next) => {
|
app.use((req, res, next) => {
|
||||||
// 设置是否运行客户端设置 withCredentials
|
// 设置是否运行客户端设置 withCredentials
|
||||||
@@ -47,10 +45,8 @@ http.createServer(app).listen(config.port, "::",() => {
|
|||||||
// app.listen(config.port, () => {
|
// app.listen(config.port, () => {
|
||||||
// console.log(`
|
// console.log(`
|
||||||
// 爬虫运行在下面网址:
|
// 爬虫运行在下面网址:
|
||||||
|
|
||||||
// 1️⃣ 公网 IPV6: http://[${ipv6()}]:${config.port}
|
// 1️⃣ 公网 IPV6: http://[${ipv6()}]:${config.port}
|
||||||
// 2️⃣ 局域网 IPV4: http://${ipv4()}:${config.port}
|
// 2️⃣ 局域网 IPV4: http://${ipv4()}:${config.port}
|
||||||
|
|
||||||
// `)
|
// `)
|
||||||
// })
|
// })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user