Spring

 How to write WebFlux filter in spring-boot application if I need to get access to the Rest payload (body) in the filter? (For example authorization filter needs to invoke authorization method which requires to pass body of the rest request )

Vladimir Svetov's profile image
Vladimir Svetov posted Mar 06, 2020 11:22 PM

 

Daniel Mikusa's profile image
Daniel Mikusa

My understanding is that this isn't something you want to do with WebFlux. This stack overflow post explains it a bit more:

 

https://stackoverflow.com/a/45280764

 

It also proposes a kind of workaround but it requires buffering of requests, which isn't ideal.