Don't get pipeline through api

I need all pipeline in my react ui. i call through api …but it give me “CORS error”…

useEffect(() => {
const options = {
qs: { branch: “SOME_STRING_VALUE”, “page-token”: “SOME_STRING_VALUE” },
headers: { authorization: process.env.CIRCLE_TOKEN },
};
fetch(
https://circleci.com/api/v2/project/gh/created-by-cocoon/circleci_test_repo/pipeline”,
options
)
.then((response) => response.json())
.then((data) => console.log(data))
.catch((err) => console.error(err));
}, );

CircleCI is currently dealing with a major outage that can be seen here https://status.circleci.com/

It is not clear what that would do to the API service.

1 Like

many many thanks for that information… right now their server in up … But i still get that error … i think my qs and headers implementation is worng