I have a Rest controller in Spring Reactive defined as below:
@PostMapping("/a/b/load")
public Mono<Object> loadProductToMachine(@RequestBody ProductRequest productRequest,
ServerWebExchange serverWebExchange) {
//body code is ignored.
}
I am unable to get cookie information from the serverWebExchange when the cookie is in the following format
SESSION={{sid}}; Path=/; Secure; HttpOnly;
However, when the "Secure" is removed from the cookie, I am able to get the session id from the serverWebExchange.
SESSION={{sid}}; Path=/; HttpOnly;
How can I solve this problem? I need "Secure" field in the cookie. I send the request from Postman in my local environment.