Before submitting a topic, please confirm the following
I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml
configuration file.
I have filled out the below sections to the best of my ability.
I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.
Description
I’m migrating Reviewable to use Codecov’s API v2, for the benefit of our mutual customers. I can get the information we need via the Commit detail API call, but when I try to make this request from the browser it refuses to let me see the response due to a CORS error. These are unauthenticated GET
requests for public coverage results, not subject to preflight.
Could you please set an appropriate Access-Control-Allow-Origin
header on API v2 responses? Either *
or something fancier would be fine. Thanks.
Expected Results
The API response is available to our app.
Actual Results
Access to XMLHttpRequest at 'https://api.codecov.io/api/v2/github/codecov/repos/example-typescript/commits/1975e3b2b0f4baaf0e71218a6710d26f4a708b42' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.