1,282 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
64
views
WebSocket SockJS Connection Blocked by Duplicate CORS Headers in Spring Cloud Gateway + Nginx Setup
Problem
I'm getting a CORS error when connecting to a WebSocket endpoint through Spring Cloud Gateway with Nginx as a reverse proxy (it works on my local env without nginx):
Access to XMLHttpRequest ...
0
votes
0
answers
117
views
Spring Cloud Gateway not routing requests to my microservice
I was following a tutorial that shows this application.properties for gateway configuration:
server.port=9000
spring.application.name=UserMS
spring.cloud.gateway.routes[0].id=UserMS
spring.cloud....
1
vote
2
answers
108
views
spring-cloud-gateway-webflux multiple Path predicates return 404
I’m having trouble with Spring Cloud Gateway (WebFlux) when I define multiple Path predicates for a single route.
Here is an example of my configuration in application.yml:
spring:
cloud:
...
-1
votes
1
answer
96
views
HTTP-403 when authentication in spring authentication server after /login in spring cloud gateway
I trying to setup cooperation of gateway and authorization server.
help me to find error in the program, when i authenticate me and enter to web authentication form username=admin and password=1 i ...
0
votes
0
answers
55
views
Spring Cloud Gateway MVC leaks SSE connection with SseEmitter
I'm encountering a problem while using Spring Cloud Gateway MVC to route requests to an internal API with an endpoint that uses SseEmitter to enable notifications via Server-Sent-Events. To quickly ...
0
votes
1
answer
65
views
Spring WebFlux: updating SSL certificate
My application uses the Spring Cloud Gateway so the stack is Spring + WebFlux. When the application starts it use the SSL certificate from the file. But after few weeks the external system is updating ...
Best practices
0
votes
1
replies
45
views
SpringC loud Gateway and Spring Authorisation Server Common Session storage
I have a Spring Authorisation Server as my OAuth2-OpenID Connect authentication server running with multiple instances on a cluster. It uses Spring Session Redis for managing distributed sessions. ...
0
votes
1
answer
101
views
Spring Boot: Redirecting URLs ending in slash to without slash
I want to redirect all routes like /api/user/home/ to /api/user/home. Here is the configuration file for gateway:
spring:
application:
name: gateway
cloud:
gateway:
routes:
-...
0
votes
0
answers
43
views
Validating files in Spring Cloud Gateway MVC
everyone!
I'm using Spring Cloud Gateway MVC 4.1.2
I need to validate incoming file in multipart request by checking his magic bytes.
Straight approach doesn't work because after opening a stream from ...
0
votes
0
answers
69
views
How can I properly handle multiple post-filters that modify the response body before it’s committed in Spring Cloud Gateway?
I’m working on an API gateway project using Spring Cloud Gateway, and I’m struggling with the correct way to implement post filters that should run after the NettyWriteResponseFilter, but before the ...
0
votes
0
answers
30
views
Logout with dynamic post_logout_redirect_uri on gateway
How to have post_logout_redirect_uri when we have spring-cloud-gateway which is served for multiple frontend applications and each of those applications could have it's own logout page?
Is it just ok ...
2
votes
1
answer
109
views
Receiving "Connection prematurely closed BEFORE response" after JDK upgrade to 21 and spring-cloud-zulu to spring-cloud-gateway [closed]
After upgrading Spring Boot gateway application Java version from JDK11 to JDK21 and changing the dependency of the gateway from spring-cloud-netflix-zuul to spring-cloud-starter-gateway (spring cloud ...
0
votes
1
answer
93
views
Spring Cloud Gateway Path Matching with Regex
I have a path defined as below:
- id: test-reroute
uri: http://localhost:3000/
predicates:
- Path=/(.*)/test-file.js
filters:
- RewritePath=/(.*)/test-file.js, /ui/test/test-file.js
...
0
votes
0
answers
80
views
Spring OAuth2 login page doesn’t load correctly when accessed through Gateway
I’m using a Spring OAuth2 Authorization Server with a Gateway in front of it.
When I access the login page directly via http://localhost:9999 (the OAuth2 server port), everything works: the CSS loads ...
0
votes
1
answer
214
views
spring-cloud-gateway-webflux 4.3.0 Gateway Actuator not working
I have a spring-cloud-gateway-webflux service and I have enabled all the actuators but the /actuator/gateway doesn't show up so I can't view all the routes.
I am using the following dependencies:
...