为什么我通过Node js And Express获得Chrome中的Favicon请求?如何阻止Favicon请求

当我收到2个请求时,如何阻止Goolge chrome中的收藏夹请求?

const express= require('express');
const app=express();
const port=3000;
app.use((req,res,next)=>{
    console.log("In the Middleware");
    next();
});
app.use((req,next)=>{
    console.log("In the Other Middleware");
    res.send("<h1>Hello From Express</h1>");
});
app.listen(port,()=>{
    console.log('App running at port '+port);
});

我该怎么办?

hebeitangshanqianan 回答:为什么我通过Node js And Express获得Chrome中的Favicon请求?如何阻止Favicon请求

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3143663.html

大家都在问