This is very inconvenient! Shouldn’t this be handled by the VaadinSecurityConfigurer?
IMO everything that is imported with @StyleSheet should be automatically accessible.
Vaadin, however, makes styles.css automatically public to simplify theme imports and cover simple cases where styles can be embedded into one single file.
IMO this should also work with Parent Themes.
I really liked the Parent theme functionality before 25. It’s a lot of work to migrate that to Vaadin 25.
To better understand, you have a styles.css in the application and other stylesheets packaged into JAR file under src/main/resources/META-INF/resources/themes/my-theme.
To import the parent theme, you use @Stylesheet annotation or @import directive in the CSS.
Is this correct?
I see. I guess a potential workaround to make security work out of the box is to put the theme in src/main/resources/META-INF/resources/themes/. The /themes/* path is allowed by default by VaadinSecurityConfigurator.
But I did not test it, to be honest