The idea is, I receive POST request with some parameters already included e.g., car name and price
I need to add some parameter that client should not know about (for example, car's VIN, which client should not know before he makes a purchase)
Then, with parameter added, I want to forward this request to another site, which all data that I have passed (car name, price, vin)
Is there a way to implement on Controller level, not filters?
@RequestMapping(value = "/abc")
public void ABC(final HttpServletRequest request) {
request.getParameterMap().put("vin", VIN_CODE); // cannot do that because it is read-only
return "forward:https://completelyanothersite.com";
}
EDIT: Based on comments, forwarding is not solution, instead redirecting is the one