Skip Content-Disposition header when requestUri is the context and/or the servlet path [SPR-13612] #18190
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
Rossen Stoyanchev opened SPR-13612 and commented
The fix to protect against RFD exploits (#18124) introduced a "Content-Disposition:attachment;filename=f.txt" response header for
@ResponseBody
methods where the URL appears to have an extension that is neither whitelisted by default nor explicitly registered by the application.However if you name an application with Maven conventions my-app.1.3.4-SNAPSHOT and deploy to a servlet container a Content-Disposition header is added for the URLs that match the context and/or servlet path.
Affects: 4.1.8, 4.2.2
Issue Links:
The text was updated successfully, but these errors were encountered: