Skip to content

Commit 32bcbff

Browse files
committed
Add RuntimeHints for webauthn Javascript resource
1 parent 409d552 commit 32bcbff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web/src/main/java/org/springframework/security/web/aot/hint/WebMvcSecurityRuntimeHints.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
4747
hints.resources().registerResource(css);
4848
}
4949

50+
ClassPathResource webauthnJavascript = new ClassPathResource(
51+
"org/springframework/security/spring-security-webauthn.js");
52+
if (webauthnJavascript.exists()) {
53+
hints.resources().registerResource(webauthnJavascript);
54+
}
55+
5056
}
5157

5258
}

0 commit comments

Comments
 (0)