0

I am trying to set proxy:false in my Nestjs Project with Axios httpservice.post():

Here is my code:

const requestConfig: AxiosRequestConfig = {
  headers: {
    'Content-Type': 'YOUR_CONTENT_TYPE_HEADER',
  },
  proxy:false,
};

const responseData = await lastValueFrom(
  this.httpService.post(requestUrl, data, requestConfig).pipe(
    map((response) => {
      return response.data;
    }),
  ),
);

Got this above code from Stackoverflow answer I tried to implement it but I am getting error "Argument is not assignable to parameter of Type AxiosRequestConfig" and unable to Proceed

Akki
  • 1,718
  • 2
  • 29
  • 53

0 Answers0