The azure waf is giving a sql injection rule match and rejecting with 403 if my request body in JSON has and sql keywords or special characters and we cannot disable the rule by our company policy.
I wanted to get the request from frontend in Base64 encoded string and decode it before it reaches my RestController, and encode to Base64 before I send the Response to the front end.
Is this approach correct?
If yes, Can someone point me to some code to do it in a simple way like, HandlerInterceptor or something? I have read other questions but didn't get data about how to pre Decode and post Encode into base64 before @RequestBody deserialization happens.