-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Labels
Type: BugSomething isn't working as documentedSomething isn't working as documented
Description
What happened?
When using as documented, observed content blocked errors instead of expected return.
The expectation is that the contents of the asset would be streamed if we use Octokit to hit this api endpoint where GitHub traditionally blocks CORS.
I am using octokit in .tsx files and attempting to get the contents of a json file from the release asset specific as a particular id.
const assetResponse = await octokit.rest.repos.getReleaseAsset({
owner,
repo,
asset_id: resultsAsset.id,
headers: {
accept: "application/octet-stream",
}
});
Versions
octokit/rest v21.0.2, Node v20.16.0
Relevant log output
Preflight response is not successful. Status code: 405
Fetch API cannot load ... due to access control checks.
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
Type: BugSomething isn't working as documentedSomething isn't working as documented
Type
Projects
Status
🔥 Backlog