Skip to content

Commit

Permalink
Add RuntimeHints for webauthn Javascript resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Kehrlann committed Nov 25, 2024
1 parent 409d552 commit 32bcbff
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
hints.resources().registerResource(css);
}

ClassPathResource webauthnJavascript = new ClassPathResource(
"org/springframework/security/spring-security-webauthn.js");
if (webauthnJavascript.exists()) {
hints.resources().registerResource(webauthnJavascript);
}

}

}

0 comments on commit 32bcbff

Please sign in to comment.