Consider enhancing ResourceUrlProvider to be able to change the domain, port, or scheme [SPR-12130] #16746
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Milestone
Brian Clozel opened SPR-12130 and commented
Now that the new
resource handling feature is in release candidate phase, we received feedback on several aspects.
One of those feedbacks is about changing the HTTP domain that serves resources. Here are some use cases for this:
See this Twitter conversation (in french) for reference.
We considered allowing ResourceResolvers to return complete URLs (and not only the resource path), but the current design for the Resource (Resolver/Transformer) chain is simple and cohesive -- focused mainly on the resource path. The ability to modify the domain, port, and scheme is a separate concern.
This issue is to explore the following solution:
ResourceUrlProvider
, making it a cross-cutting concern for ResourceResolversWebMvcConfigurerAdapter
orWebMvcConfigurationSupport
Affects: 4.1 RC2
Issue Links:
The text was updated successfully, but these errors were encountered: