mirror of
https://github.com/gotson/komga.git
synced 2025-12-25 18:03:56 +01:00
ignore web security for static assets
This commit is contained in:
parent
3df5e065f7
commit
aa969fd8bd
1 changed files with 4 additions and 3 deletions
|
|
@ -36,9 +36,6 @@ class SecurityConfiguration(
|
|||
.csrf().disable()
|
||||
|
||||
.authorizeRequests()
|
||||
// unrestricted endpoints
|
||||
.requestMatchers(PathRequest.toStaticResources().atCommonLocations()).permitAll()
|
||||
|
||||
// restrict all actuator endpoints to ADMIN only
|
||||
.requestMatchers(EndpointRequest.toAnyEndpoint()).hasRole("ADMIN")
|
||||
|
||||
|
|
@ -70,6 +67,10 @@ class SecurityConfiguration(
|
|||
web.ignoring()
|
||||
.antMatchers(
|
||||
"/error**",
|
||||
"/css/**",
|
||||
"/img/**",
|
||||
"/js/**",
|
||||
"/favicon.ico",
|
||||
"/",
|
||||
"/index.html")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue