Questions tagged [interceptor]
The interceptor design pattern allows logic to be "inserted" before, during or after the execution of a piece of code, such as a method.
interceptor
2,691
questions
0
votes
0
answers
14
views
Intercept outgoing NodeJS https request calls in a application and fetch the request body | Replace original request with modified request
My application uses NodeJS https request (https://nodejs.org/api/https.html) to make outgoing calls.
I need to intercept it and first fetch the request body. Once the request is fetched, I'm preparing ...
0
votes
1
answer
29
views
How to redirect to a specified route in Nuxt server api?
I am currently doing a project using Nuxt and I am using the Nuxt server/api folder for all of my external API. What I'm trying to do is that, I want to redirect back to the / page if there are any ...
0
votes
1
answer
15
views
django grpc framework server interceptor does not seem to run properly
I am using djangogrpcframework 0.2.1 and I am trying to write a interceptor to see if a key is present in the request metadata. I also log somethings to see the progress of the interceptor.
from grpc ...
0
votes
0
answers
53
views
Only one endpoint is not intercepted by auth interceptor in Angular 17.2.1
Only the api/authentication/reset-password endpoint is not intercepted. Other endpoints and api/authentication/refresh-token are intercepted via authInterceptor as expected.
// src\app\admin\pages\...
-1
votes
0
answers
36
views
Axios request interceptors not being updated on time
For my nextJS APP i am configuring the headers using axios interceptors:
import axios, { AxiosInstance, AxiosResponse } from "axios";
const httpClient: AxiosInstance = axios.create();
...
0
votes
0
answers
14
views
microfrontends intercept http request
What are the ways to intercept http requests in microfrontends?
For example: There is a Host application and Remote1 application, interceptors axios.interceptor.request.use are configured in the Host, ...
0
votes
0
answers
13
views
Modify Request In Spring Boot Before Controller With HandlerInterceptor
I found some resources about modifying request/request-body in spring boot before controller validation but HandlerInterceptor is not clear.
Link: https://www.baeldung.com/spring-boot-change-request-...
-2
votes
0
answers
21
views
WebClient incorrect request body length after intercept in filter
I intercept my XML request body by adding two nodes and remove some namespaces. When I'm trying to use my filter, in header content-length I have pre-intercept request body length. I checked that if I ...
0
votes
0
answers
49
views
Spring cloud stream kafka binder consumer interceptor
I am working on a spring boot application. Below is my application details:
config:
spring:
cloud:
stream:
function:
bindings:
orderEventsConsumer-in-0: order-events-in
...
1
vote
1
answer
92
views
Angular 18.0.5 not seeing the interceptor
Angular is not aknowledging the interceptor.
So basically I executed
ng generate interceptor JwtInterceptor
and setup set it up to add the token to the header :
import { HttpErrorResponse, ...
-1
votes
0
answers
21
views
Cookies are null in Spring MVC Interceptor, however the same cookies are available in Servlet Filter class
Cookies are getting null in getCookies() method of interceptor HttpServletRequest, However the same cookies are available in HttpServletRequest in the filter class from getCookies() method. Is ...
-1
votes
1
answer
24
views
How to write an interceptor in nest
How to write an interceptor in nest, use documentation, carry out authentication. An interceptor is a class annotated with the @Injectable() decorator and implements the NestInterceptor interface.
...
1
vote
0
answers
50
views
Interceptor in angular (version 12) is not getting called
Following is my interceptor code,
api.interceptor.ts
import { HttpEvent, HttpHandler,
HttpInterceptor, HttpRequest } from '@angular/common/http';
import { Injectable ...
1
vote
0
answers
25
views
Axios interceptor cause loop on navigating
I use axios interceptor to check if a user is logged in or not when processing a request. If not, I will redirect them to login page. The problem is when user being redirected to login page, they must ...
0
votes
0
answers
31
views
Express Interceptors and Error Filter: Prevent Interceptor from Modifying Error Responses
I am working with Express and have implemented a global error filter (GlobalExceptionFilter) and a response interceptor (ResponseInterceptor). However, I'm encountering an issue where my interceptor ...