-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
white page when compile jhipster generated app #11930
Labels
Comments
I've reproduced you error, it seems to be related to the spring-boot-jwt security configuration that forbids the load of the angular resources. |
I also reproduce |
The following change allow displaying the home page, but I'm not sure it's safe: Index: src/main/java/com/mycompany/myapp/shared/authentication/infrastructure/primary/SecurityConfiguration.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main/java/com/mycompany/myapp/shared/authentication/infrastructure/primary/SecurityConfiguration.java b/src/main/java/com/mycompany/myapp/shared/authentication/infrastructure/primary/SecurityConfiguration.java
--- a/src/main/java/com/mycompany/myapp/shared/authentication/infrastructure/primary/SecurityConfiguration.java (revision 4be88832914529947a7f67b5707347a36830deab)
+++ b/src/main/java/com/mycompany/myapp/shared/authentication/infrastructure/primary/SecurityConfiguration.java (date 1739825395557)
@@ -66,7 +66,7 @@
.httpBasic(AbstractHttpConfigurer::disable)
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
.authorizeHttpRequests(authz -> authz
- .requestMatchers(antMatcher(HttpMethod.OPTIONS, "/**")).permitAll()
+ .requestMatchers(antMatcher("/**")).permitAll()
.requestMatchers(antMatcher("/app/**")).permitAll()
.requestMatchers(antMatcher("/i18n/**")).permitAll()
.requestMatchers(antMatcher("/content/**")).permitAll() |
I have made a PR with the solution, adding only the necessary paths for the SPA rendering. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Generated with Jhipster lite 1.28.0 from web
Maven and Angular
If i create a jar with ./mvnw clean package
Do java -jar xxxxx.jar
server is launched in port 8080 but white screen is showed
and a forbidden is also showed.
How can i package the application with maven into a jar with angular app running inside?
This is what is in the app I have created
The text was updated successfully, but these errors were encountered: