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,688
questions
0
votes
0
answers
25
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
35
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
13
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
20
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
47
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
78
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
20
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
23
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 ...
0
votes
0
answers
39
views
Is there a way to access the raw payload with a Python gRPC interceptor (server)?
is there anyway in python to get raw payload in gRPC interceptor and metadata,i need to extract signature for metadata and verify signature. in golang can achieve this by adding raw payload in context ...
0
votes
0
answers
12
views
How to pass dynamic data from a class property like "this.someProp" to a NestJS Interceptor
Its fairly simply:
Inside my generic CrudController I have a property:
someProp = "someData" or actually constructor(someProp: string, crudService: CrudService){}
on a POST route for that ...
0
votes
1
answer
45
views
Error: Bad state: The FormData has already been finalized for Dio Interceptor
I am using Dio Interceptor for RefreshToken. However, whenever I make a request to the backend and the token has already expired while I'm using FormData in my request, it returns an error: "...