I am using a React app created using ‘create-react-app’. It gives me the error “GET http://localhost:3000/favicon.ico 431 (Request Header Fields Too Large)” even though I do not make a request for favicon.ico
When I try to display an image it does the same “GET http://localhost:3000/src/images/img1.jpg 431 (Request Header Fields Too Large)”
When I use CSS to load the image like “background-image: url(“../../images/img1.jpg”);” it works just fine.
When I get icons from my svg file using:
<svg>
<use ...>
</svg>
It also works just fine
I have tried to shorten the file length from the normal Unsplash filename to img1.jpg but its not working
Alec Landman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.