I have some js/html/css that will in certain situations, encounter harmless 403 errors when loading images.
Is there any way to catch these errors and to prevent them from logging errors to the console?
Thanks!
Nope. If the server responds with just about anything other than a 200, you are going to see it in the console. You will need to fix it on the server side.
Also, 403 errors are far from meaningless - it literally means that there are "Forbidden" requests going out. While it may be "meaningless" to the functionality/content of your app/site, those requests should either 1) not be requested in the first place, or 2) be responded to with some sort of "Forbidden" placeholder image.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With