I am trying to send a PUT request to the GitHub API to upload a file to a repository. The following code generates the CORS policy error.
fetch(u