I am trying to use Spring Boot Security for Vaadin Flow with a newly created Vaadin 17.0.7 application. Platform: macOS + Java 15 + Brave browser.
When submitting the login form, I get the following errors in the browser:
(ReferenceError): ajax is not defined
Error loading http://localhost:8080/src/js/miniAjax.min.js
The browser’s JavaScript console shows (see attached screenshot):
Refused to execute script from 'http://localhost:8080/src/js/miniAjax.min.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
After a bit more research: We still have a frontend folder (at least by convention), but the frontend protocol which was used implicitly for relative URLs like mine, simply doesn’t exist anymore…not sure what that’s about. Seems like a change that could break a lot of stuff.
Anyway, I found a solution. Check out version 0.9.2.