All Questions
Tagged with spring-cloud-gateway api-gateway
42
questions
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/...
0
votes
0
answers
60
views
Ignore authorization for a particular URL in Spring Cloud API Gateway
I have an API Gateway that routes to an Netflix Eureka Discover Server in Spring. I have configured an authorization for the API Gateway but wanted to ignore this API Gateway authorization only for ...
0
votes
1
answer
203
views
Spring Cloud Gateway with OIDC/Oauth2 refresh tokens and max-reuse=0
I'm trying to configure an Api Gateway using Spring Cloud Gateway and the authorization code flow.
The authorization server is configured to allow refresh-tokens for renewal of access-tokens, but we ...
0
votes
0
answers
151
views
Spring cloud gateway not able to find the service recource
enter image description here
This is the spring boot application which is using java version 17, spring version 3.2.3 and cloud version 4.1.0 .
enter image description here
This is my yaml file, where ...
0
votes
0
answers
102
views
Unable to use Weight Route Predicate Factory in spring cloud gateway when using java config class
Cannot resolve method 'predicate' in 'UriSpec'
I am trying to split incoming traffic to my gateway to two services based on split weight defined,
so say 80:20, 80% of my requests are going to service1 ...
0
votes
0
answers
64
views
Decrypt the REST API Request URI / body at API Gateway to secure the request data
My front-end application will call the back-end Spring boot application with the encrypted URI
Encrypted Request URI
http://example.com/jhliufwf76&gjhgf#hlkjsf
I need to decrypt the URI & ...
0
votes
0
answers
243
views
Log response body in spring cloud gateway in filterfactory class
I am trying to modify the response body which is currently gzipped text/html format. As first step i want to log it in abstract filter factory class.
So far i have tried https://stackoverflow.com/...
0
votes
1
answer
686
views
Spring Gateway Request blocked by CORS (The 'Access-Control-Allow-Origin' header contains multiple values, but only one is allowed)
I have created a gateway API (spring boot) to route to a number of backend services (spring boot applications) for the frontend (Typescript), but I keep getting CORS error when the frontend tries to ...
1
vote
0
answers
91
views
Spring Cloud Routing Based on Payload
I am trying to implement the below pattern.
API Gateway:
http://apigateway/serve-this-request
Service-A:
http://service-a/v1/type1
http://service-a/v1/type2
Service-B:
http://service-b/v1/type2
...
-1
votes
1
answer
85
views
Unknown property 'allowedOriginPattern' for type 'org.springframework.web.cors.CorsConfiguration'
I have a Spring Cloud Gateway application which supported 'http://example.com' as a origin. So to handle that below was my code:
spring:
cloud:
gateway:
globalcors:
cors-...
0
votes
0
answers
260
views
How to implement Spring Cloud Gateway with java fluent api or application.properties?
enter code herei want to add SCG to my demo app but when i use the java fluent api method (@Bean in the config file) or set it in application.properties i get these errors:
** NOTE: i have another ...
1
vote
0
answers
208
views
Spring Cloud Gateway Entering Infinite Loop When Routing to Angular App
I'm working with Spring Cloud Gateway to route requests to an Angular app, but I'm encountering an issue where the Spring Cloud Gateway enters into an infinite loop. The logs show that the same ui ...
0
votes
1
answer
901
views
Angular CORS Error When Following Backend Redirect for OAuth2 Logout
I'm working on a web application that uses Angular for the frontend and a Spring Boot backend. We have implemented OAuth2 login via Microsoft's identity platform. Logging in works fine, but I've run ...
1
vote
0
answers
117
views
Spring Cloud API Gateway Whitelabel Error Page after page reload
I have my Spring Cloud API Gateway Setup to forward requests on / to my angular frontend. And this works, until I reload the page. Then I get the empty Spring 404 Page, or I get an error 431 header is ...
2
votes
2
answers
3k
views
Spring cloud gateway ServerHttpResponseDecorator writeWith not called on receiving response
I have a Spring Cloud Gateway application and I want to implement a filter which reads the response body before passing it on to the client. Below is the code to the custom filter:
@Component
public ...