Skip to main content

All Questions

-1 votes
1 answer
59 views

Session management in a spring-oauth2-client that works as a gateway

I am implementing a microservices application and for the authentication issue I have used something similar to what @ch4mp proposed in his https://www.baeldung.com/spring-cloud-gateway-bff-oauth2 ...
Andre Gallegos's user avatar
1 vote
0 answers
48 views

I can't configure Spring Cloud Gateway to validate some routes with OAuth2 and allow others to redirect without validation

I want to configure so that the route /api/v1/auth/** validates authentication with the token I send from a front with Angular. At the same time, I want requests to /api/v1/user/** not to require ...
user23981540's user avatar
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 ...
JangoCG's user avatar
  • 916
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 ...
JangoCG's user avatar
  • 916
0 votes
1 answer
369 views

Set Headers in A request that we cannot access in angular ("@angular-architects/module-federation")

I have a shell and several micro frontend apps all built with Angular 14. I've used "@angular-architects/module-federation": "^14.3.14". Everything works fine Except I could not ...
saeed's user avatar
  • 5
0 votes
2 answers
468 views

Spring cloud gateway redirects to keycloak even though authentication is not required for route

I have a spring cloud gateway which is protected using keycloak. Behind the gateway are a few microservices and an angular frontend which is served by an NGINX container. The gateway acts as a ...
Arne Hus's user avatar
4 votes
2 answers
3k views

Spring Cloud Gateway Error 403: Forbidden

Context I'm creating a MicroServices-based project. I'm using Angular 15 for Frontend and Spring 3.0.2 for Backend. I'm using Keycloack 20.0.3 for authentication for both frontend & backend. I ...
galalem's user avatar
  • 425
0 votes
1 answer
452 views

Angular app served behind Spring Cloud Gateway cannot send POST requests to backend because of invalid CSRF token

I'm experimenting with the possibility of serving an Angular application through Spring Cloud Gateway. Everything works fine for GET requests but as soon as I try to send a POST request to the ...
Giovanni Piccolo's user avatar
0 votes
1 answer
1k views

Spring cloud gateway + service with websockets + angular result in CORS error

I have recently added websocket configuration to my spring application, which is behind a Spring cloud gateway. There is also an angular app which communicates with my service through the gateway. The ...
Alexander Mladzhov's user avatar
1 vote
1 answer
3k views

csrf enabled on spring cloud gateway does not add the csrf token in the response header

I have enabled CSRF in spring cloud gateway application. I have allowed a login api so that the first request to the application is processed and the response would have the CSRF token for my frontend ...
manjosh's user avatar
  • 564
1 vote
1 answer
1k views

Angular request to Spring Gateway No 'Access-Control-Allow-Origin' header is present on the requested resource

I have a Angular application which is trying to send a GET request to a microservice via a Spring Gateway application. I have configured allowed origin on the microservice (helloworld) to allow from ...
user3859651's user avatar
0 votes
0 answers
115 views

Is there a way to call a spring cloud app using angular

I am developing a spring cloud application, but the front-end is in angular. Is there a way to call a spring boot app which has a spring cloud gateway with eureka service discovery, using angular app. ...
Manoj Majumdar's user avatar
0 votes
1 answer
821 views

Spring Cloud Gatway with Angular Routing

I have a Spring Cloud Gatway that routes to an Angular application which is hosted on a Tomcat server under localhost:9092/admin. This is my gateway configuration server: port: 9091 spring: cloud: ...
Stefan R.'s user avatar
  • 438
1 vote
1 answer
1k views

How to get keycloak token using Angular -> Spring Boot Oauth2 -> Keycloak

I have a angular application as front end and spring boot as backend technology and as authorization server I am using keycloak 12.0.4. I don't want to ues keycloak adapter for angular and spring boot,...
pise's user avatar
  • 859
1 vote
2 answers
5k views

Spring Cloud Gateway Preflight Cors Error with Angular

I'm trying to use spring cloud gateway with spring security and trying to call the rest API through angular but I'm getting following error Access to XMLHttpRequest at 'http://localhost:9090/api/v1/...
user585014's user avatar

15 30 50 per page