Open fluorumlabs opened 3 years ago
Hi @fluorumlabs ,
could you please tell which version of Vaadin have you chosen?
Thanks,
I've been testing with Vaadin 20.0.0.beta1 / Flow 7.0.0.beta3
I understand that it is related to vaadin/spring#802, when using VaadinWebSecurityConfigurerAdapter
It's not related to Spring Security.
Ok. Great. Thanks for point it out, @fluorumlabs.
So, when accessing the vaadin servlet directly (as it is published at /vaadinServlet
by the spring plugin) to serve the app it is not serving the static content as it is not recognized as a static resource.
Removing the servlet path when calling getStaticResource
inside StaticFileServer#isStaticResourceRequest
would solve the issue.
The described behavior is the same for V14
To be re-tested with latest Vaadin version (23.2).
Why should this work? /vaadinServlet/ should preferrably not even be available for direct use
Steps to reproduce:
http://localhost:8080/vaadinServlet
http://localhost:8888/vaadinServlet/images/logo.png
returns HTML.