Last Updated: February 25, 2016
·
2.651K
· georgeosddev

Github API with Access-Control-Allow-Origin in Response Header

To use github API with Javascript and Cross Origin Resource Sharing (CORS),
It is need to regist application url as an OAuth Application,even if the application does not use the OAuth.
But there is no link to application registration page in API Document.So I share here.

Application Registration Page:
https://github.com/settings/applications/new

API Document:
http://developer.github.com/v3/#cross-origin-resource-sharing

And I created sample application.
http://georgeosddev.github.com/markdown-edit/

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.

Security insights from Cside