Skip to content

Tag: cors

Android studio webview does not allow cors

I creating a android application and i want to load data from my server but if i load the data i get a “TypeError: Failed to fetch”. I have tried many ways. I also tried just to load inside the webpage and it also doesn’t work. All my files: Main_actifity.xml AndroidManifest.xml I was expecting to load data from

OAuth issue in API gateway

I am facing the OAuth issue, details are below: I am having two microservices: registration-service( student-service( For these two I have added : cloud-config-server( naminig-server( gateway( FrontEnd: is at react js: For first time use, a new user need to be register that can be done from curl: To login using the above registered user, below can be run

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 annotation on to class and it works. It was all good and has been working well, until I added security part with ability to login users. What did I did:

CORS error with Angular call to Java service

I have an Angular application that makes a call to a Spring Boot Java service in a separate container. This gateway service calls two other services (one Java and one Python) as needed. Everything works fine running four Docker containers locally. When I run this in AWS ECS, I get the following two errors in my browser: Cross-Origin Request Blocked:

Angular app gets CORS error only in chrome

On my Angular app (Local host app with remote server), I get CORS error only in chrome, in Firefox, it works perfectly. Once it worked on both, but suddenly it stopped working on Chrome, I guess it’s related to a kind of update (I guess of chrome?? ) Ofcorse, uploading the app to the production server works on both browsers.

Empty response after aplying CORS policy Springboot

When I don’t touch anything about CORS, the browser shows me the common error Access to fetch at ‘http://localhost:8080/denodo-testwebapp/tags’ from origin ‘http://localhost:3000’ has been blocked by CORS policy But meanwhile doing a GET petition on postman I recive the response with all the data But when I try to disable CORS by adding this code: I no longer have the

WebTestClient – CORS with Spring Boot and Webflux

I have Vuejs frontend and a Spring Boot Webflux controller. Now the browser is complaining with CORS when doing a call to Spring Boot. Access to XMLHttpRequest at ‘https://…’ from origin ‘https://…’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. To enable CORS I