Skip to main content

All Questions

0 votes
0 answers
15 views

Cannot disable CORS in Spring Cloud Gateway

IN the frontend React Web App. import { useState } from "react" export default function PrestadoresServico() { const [prestadoresServicos, setPrestadoresServicos] = useState([]) ...
Diego Alves's user avatar
  • 2,607
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
-1 votes
1 answer
97 views

Spring Gateway Security Access-Control-Allow-Origin on OPTIONS but not POST

I am having an issue when adding spring security to spring gateway application. I don't know if it's relevant but I am using spring-boot-starter-parent 2.5.8. I created the gateway app initially ...
user3859651's user avatar
-1 votes
1 answer
180 views

Resolving CORS issue in React + Spring microservices using Eureka and Spring Cloud Gateway

I have a React + Spring microservices architecture where I've separated my server into microservices and I'm using Eureka along with spring.cloud.gateway. Despite trying various methods, I'm unable to ...
Artem Dubenko's user avatar
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 ...
Batool Ragayah's user avatar
1 vote
1 answer
1k views

Multiple CORS header 'Access-Control-Allow-Origin' not allowed | Spring Boot

I am getting following error when I tried to fetch data from the Spring Boot Backend with HTML + JS Access to fetch at 'http://localhost:8222/api/v1/admin/hotels?page=0&size=10&searchText=&...
SKS's user avatar
  • 58
2 votes
0 answers
260 views

Spring Gateway 'Access-Control-Allow-Origin' header contains multiple values 'DOMAIN, *', but only one is allowed

While trying to connect a React frontend to the backend through the Spring Cloud Gateway version(2021.0.5), CORS throws an error due to Multiples Values. CORS is configured only in the Gateway; ...
Alex G's user avatar
  • 65
0 votes
1 answer
317 views

Spring Cloud Gateway - CORS Preflight with React <> Spring Cloud Gateway <> NodeJS

I am trying to setup a Cloud Gateway between React App and NodeJS application Below is error I am getting on ReactApp: Access to XMLHttpRequest at 'http://localhost:8080/graphql' from origin 'http://...
Smit's user avatar
  • 2,108
0 votes
1 answer
2k views

Double CORS headers with spring-cloud-gateway

How to disable CORS on gateway? I mean really disable, not allow requests from all origins with all methods like you find when searching for "disable gateway CORS" on stackoeverflow or ...
ch4mp's user avatar
  • 11k
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
0 votes
4 answers
9k views

No 'Access-Control-Allow-Origin' header is present (CORS) - Spring Boot (Spring security) Microservices + Vue.js

I'm working on Spring Boot project based on microservices architecture on backend and Vue.js on frontend. Structure of my project is next: For avoiding CORS error usually I add @CrossOrigin ...
Allteran's user avatar
4 votes
10 answers
30k views

Configure CORS policy for Spring Cloud Gateway

I have Spring Cloud gateway running on separate server with the following configuration: spring: cloud: gateway: globalcors: cors-configurations: '[/*]': (I also tried '...
Peter Penzov's user avatar
  • 1,048
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
1 answer
1k views

Spring Cloud Gateway and CORS header

I am trying to proxy-forward a request using org.springframework.cloud.gateway.mvc.ProxyExchange. The call is working fine. In my scenario I like to integrate it with the browser calls, but get a CORS-...
Sanooj's user avatar
  • 57
1 vote
2 answers
8k views

How to disable CORS in Spring Cloud Gateway?

I want to call a POST request from my front-end application, however in console i see: Access to XMLHttpRequest at 'http://localhost:9090/authenticate' from origin 'http://localhost:3000' has been ...
invictusqq's user avatar

15 30 50 per page