I have this piece of code to config static resource
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/static-resource/**")
.addResourceLocations("file:/path/to/static-resource/")
.setCacheControl(CacheControl.noStore()
.cachePrivate()
.mustRevalidate());
}
now I can access everything inside /static-resource without authentication
Then, I want to secure some specific endpoints inside static-resource, it can be any request matching with /static-resource/secured-docs/**.
How I can secure my static resource in A12?
Updated:
Versions Iām using:
- Data Service: 35.0.0
- UAA: 6.1.0