Skip to main content

All Questions

-1 votes
0 answers
42 views

CORS with spring cloud gateway MVC is not working

I have a simple spring-cloud-gateway-mvc gateway where I have configured the cors through configuration which does not work. spring: cloud: gateway: mvc: routes: - id: ...
pmverma's user avatar
  • 1,661
0 votes
1 answer
49 views

How to use Spring Cloud API Gateway (MVC) to create filter that dynamically obtains a value with addRequestParameter?

In Spring Cloud API Gateway (MVC), I am trying to filer a GET request that dynamically creates a request param (query string)? Original request path to API Gateway with path param: v1/sample-resource/...
user23524156's user avatar
0 votes
0 answers
38 views

Spring cloud gateway : Returns 200 to an api call but no response in body

When I hit URL through postman, [localhost:8090/api/v1] I get 200 but no response in body and when I check the logs of the service which was hit through gateway it shows nothing, which means it didn't ...
Aditya Priyam iGTB's user avatar
0 votes
0 answers
32 views

Problems with the authentication route using spring cloud gateway with oauth

I'm having problems with the authentication route using spring cloud gateway with oauth.I have 3 simple authentication services, which have a gateway, an oauth configuration service and the user. When ...
Jean Fernandine's user avatar
-1 votes
1 answer
57 views

How to get inputStream as return value from ServerHttpRequest in spring reactive?

I am writing a Spring Reactive implementation for a third-party SPI which is based on a traditional servlet. One method requires InputStream from request as return value: /** * Returns the request ...
Michael's user avatar
  • 410
0 votes
1 answer
84 views

Spring websocket connection closed by spring cloud gateway after 30 seconds

My application is a microservice application. I am using spring web sockets to send notifications to the front end. In my application, I have a gateway service to route the HTTP requests to the ...
Devmina's user avatar
  • 45
0 votes
1 answer
132 views

React Native OAuth2 Backend for Frontend With Spring Cloud Gateway BFF

Hello I am using learning about OAuth. I have a react native app, and I want to connect it to my Java Spring backend, with OAuth. I used this tutorial to add OAuth to my Java backend: https://www....
Kado's user avatar
  • 13
0 votes
0 answers
21 views

What is the right way of doing custom Authentication in spring WebFlux. In my configuration i have redirect after Authentication problem

I try to implement custom Authentication digital signature based in Spring Cloud Gateway. At this moment i just return true for signature validation. public class AdsAuthenticationFilter implements ...
Vladimir Surkov's user avatar
1 vote
1 answer
134 views

Converting ServerHttpRequest to HttpServletRequest

I'm migrating an application from Netflix/Zuul to Spring Cloud Gateway: public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) { ServletServerHttpRequest ...
cybertextron's user avatar
  • 10.9k
0 votes
1 answer
105 views

No 'Access-Control-Allow-Origin' with Spring Cloud API Gateway and OAuth2 Server

I'm facing a CORS issue when using Spring Cloud API Gateway along with a Spring Security OAuth2 server. My frontend application running on http://localhost:4200/ is blocked due to a missing Access-...
abus's user avatar
  • 89
0 votes
0 answers
86 views

Add dynamic value in the header

i use spring cloud gateway mvc. We can add header value with addRequestHeader @Bean public RouterFunction<ServerResponse> bookServiceRoute() { return route("bookRoute") ...
robert trudel's user avatar
0 votes
1 answer
93 views

Spring cloud gateway + spring authorization server api call with postman with bearer token

this is my spring cloud gateway config : registration: gateway-client: provider: auth-service client-id: coreInsurance client-secret: F1656E3D-FA7D-FE68-891F-...
Moolerian's user avatar
  • 552
0 votes
0 answers
36 views

Spring cloud gateway rewritePath and display route

I use spring boot and spring cloud gateway mvc Server 1 locahost:8082 it's context path is /crm Server 2 localhsot:8001 it's context path is /acme/crm When a call is do server 1 like locahost:8082/crm/...
robert trudel's user avatar
0 votes
2 answers
68 views

Redirect url without all payload and endpoint?

I have an angular application with 2 spring boot application: A and B Actually angular call api from server A I want to change that. I would like angular do call api from server B and this last server ...
robert trudel's user avatar
0 votes
1 answer
24 views

Declarations of fixed payload in proxy server using spring cloud gateway

I am using proxy gateway for the api in spring cloud gateway and for one of request I want to pass a payload without taking it from user and a fix payload should be passed E.g { "Fname": &...
Anit Agrawal's user avatar

15 30 50 per page
1
2 3 4 5
26