-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove default favicon #17925
Comments
This is quite tempting. While we have a configuration property ( If an application developer cares about the favicon they will provide their own. If they don't care about it I doubt there's much difference to them between serving a default icon and serving nothing. |
Another benefit of removing the default favicon is that we could then also remove the |
We've decided to remove the default favicon.ico file, the resource handler configuration, and the property. Users who were placing a custom favicon.ico in the root of the classpath should move it to a static resource location or configure their own resource mapping. |
This comment has been minimized.
This comment has been minimized.
What's the correct way to:
in Spring Boot 2.2.0+? Note: I have |
@patkovskyi You should get a 404 by default if there are no mappings configured for If you have any further questions, please follow up on Stack Overflow or Gitter. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. |
@hanryusan That’s unrelated to this issue as, with or without a default favicon, the location will change if you configure a context path. In that case you should link to the favicon. |
The default favicon served by Spring Boot could be classified as information leakage, in a similar manner like
Server
HTTP header (see #4730) andexception
error attribute (see #7872) were.I'd consider removing the default favicon as applications that don't provide custom favicon will inevitably leak info about being powered by Spring Boot.
The text was updated successfully, but these errors were encountered: