repos.getContent errors rest.repos.getContent No 'Access-Controll-Allow-Origin' #2537
Replies: 3 comments
-
Trying to access inside an app, with authentication to act on the repository I get the following
Excuse the code, its just testing. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Doing
works but
Throws an error, 400 response code. no info |
Beta Was this translation helpful? Give feedback.
0 replies
-
urlencode anything in the url. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use octokit in the browser, I load like so
Server that returns the web page has the
self.send_header('Access-Control-Allow-Origin', '*')
.but when making the request to
getContents
it makes a success request to github and then github redirects me to another page, which throws this error.Beta Was this translation helpful? Give feedback.
All reactions