test proxy - added headers

This commit is contained in:
2018-07-23 02:37:37 +05:30
parent 44e7e1b78a
commit fc281dd6c6
2 changed files with 5 additions and 1 deletions

2
dist/bundle.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -15,6 +15,10 @@ module.exports = class Github {
let url = 'https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token';
fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json; charset=utf-8",
"Application": "application/json; charset=utf-8"
},
body: JSON.stringify(getTokenRequest)
}
)