Home >Web Front-end >JS Tutorial >Favicon.ico request problem handling in node.js_node.js
Such code will have two requests when requesting:
The first URL address is the target URL address of the client request entered by the user, and "/" means that the user's target URL address is the root directory of the web application.
The second target URL address asks the browser to display the icon of the page in the favorites. The default is favicon.ico. And the target URL address of the automatically issued request.
You can modify the above code to block such requests
The solution is very simple but very practical, friends, please record it too.