How are you doing?
When I open my app in a browser everything is fine.
But when I open another tab in another browser certain icons do not load.
The path is: META-INF/resources/frontend/images/svg-icons/bell.svg
the configuration of spring security for example is
http.authorizeHttpRequests(
authorize -> authorize.requestMatchers(new AntPathRequestMatcher(“/frontend/images/svg-icons/*.svg”))
.permitAll());
Already in the second tab of the other browser I end up getting a 404 when GETting the endpoint of the dynamic resource
private static StreamResource setCustomImage() {
return new StreamResource("usb-port-black",
() -> SvgFactory.class.getResourceAsStream(FRONTEND_IMAGES_SVG_ICONS + "usb-port-black.svg"));
}