Skip to content

Commit 4364216

Browse files
committed
Update gitauth.js
1 parent 32a42a3 commit 4364216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/gitauth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ window.onload = async () => {
142142
async function getGithubToken(gitCode) {
143143

144144
// post through CORS proxy to git with clientId, clientSecret and code
145-
const resp = await axios.post('https://scepter-cors2.herokuapp.com/' +
145+
const resp = await axios.post(window.location.origin + '/api/cors?url=' +
146146
'https://github.com/login/oauth/access_token?' +
147147
'client_id=7ede3eed3185e59c042d' +
148148
'&client_secret=c1934d5aab1c957800ea8e84ce6a24dda6d68f45' +

0 commit comments

Comments
 (0)