q-shift / backstage-plugins

Apache License 2.0
3 stars 7 forks source link

Access to XMLHttpRequest at 'https://code.quarkus.io/api/extensions' from origin 'http://localhost:3000' has been blocked by CORS policy #3

Closed cmoulliard closed 10 months ago

cmoulliard commented 10 months ago

Issue

Axios calls reaching code.quarkus.io raises this error:

Access to XMLHttpRequest at 'https://code.quarkus.io/api/extensions' from origin 'http://localhost:3000' 
has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

See: https://stackoverflow.com/questions/56297420/getting-network-error-when-calling-axios-get-request-in-react-js

Screenshot 2024-01-11 at 15 57 08

It seems that we got a response as HTTP status is 200

Screenshot 2024-01-11 at 21 26 52

@iocanel Idea ?

cmoulliard commented 10 months ago

I replayed the steps described here using a new backstage app and I'm still getting the CORS error.

@iocanel

iocanel commented 10 months ago

The issue was on server side and is now fixed.