I have created a multi-module application with 3 modules in it (one main and two other modules). I have created a custom request response filter in al ...
I have created a multi-module application with 3 modules in it (one main and two other modules). I have created a custom request response filter in al ...
I created a servlet filter which I'm trying to use in WildFly 26 with an application deployed as an EAR file, so I added this to the web.xml file: &l ...
Let's consider a SpringBoot 2+ web application. There are several legacy endpoints written in Jersey. All new endpoints are supposed to be defined us ...
for logging (MDC) I need to set a custom header when the response is failed as the following: but this does not work, no header is set. if I set th ...
I want to give permission of URL access according to user roles. I have tried to execute my program but I unable to execute my program, I am facing Ex ...
I have tried to prevent XSS attacks in my application by sanitizing the requests containing special characters and following OWASP guidelines. But as ...
I am working with a usecase where there is a project containing servlet-filter acting as a middleware. To run this filter, i am putting @Component on ...
Using org.springframework.boot:spring-boot-starter-graphql and WebMvc, I have the following error while running the query: Caused by: java.lang.Illega ...
For some security reason, we have added a common spring filter that perform a cross-cutting check and drop a 403 when a security rule is broken. The ...
My Filter inspects multi-part posts and potentially rejects them before they reach the actual endpoint (jersey, outside my control). Allowing casual m ...
I have a Jakarta based app, that has a number of servlets and a common filter that sits in front of them all. Some of the servlets may throw an excep ...
(Java ver. 8) I need to process the request body in a filter. Using the below code, I read the body. The issue is if there are parameters posted b ...
I am looking for servlet Filter equivalent in Spring WebFlux. The WebFilter seems to only fires before the controller but not after. e.g I can add a W ...
I've recently upgraded to the spring boot version 2.6.3 while using camunda 7.17.0. The login camunda page, sends a post request, but the form-data pa ...
I am trying to implement cors in a embedded jetty server. I feel lost right now with this exception. My code is private void initServlets() { ...
I have wasted 10 hours trying to figure out a simple thing. I have a React front-end and a Spring Boot back-end running on port 8080. I have my own ...
We are attempting to use KeycloakOIDCFilter as our Apache Spark UI filter. However, we are struggling to configure the KeycloakOIDCFilter itself. We ...
I have a very basic web mvc program. I currently scan all classes with Controller annotation and scan all the declared methods to see if they have a c ...
my custom filter is not taking value from .properties/.yml file Note: property file is located at src/main/resources folder Edit (Added WebSecurity ...
the final goal: log request body string in RestController's @ExceptionHandler. explanations By default, when request is invalid json, spr ...