mirror of
https://github.com/LCE-Hub/piston.git
synced 2026-07-18 00:07:22 +00:00
\n
This commit is contained in:
parent
657e38b2d6
commit
92872aeffe
|
|
@ -38,7 +38,7 @@ function App() {
|
|||
const initiateDeviceFlow = async () => {
|
||||
try {
|
||||
setLoginStatus('Requesting code...');
|
||||
const proxyRoute = import.meta.env.DEV ? '/github-proxy' : 'https://proxy.corsfix.com/?https://github.com';
|
||||
const proxyRoute = import.meta.env.DEV ? '/github-proxy' : 'https://corsproxy.io/?url=https://github.com';
|
||||
const res = await fetch(`${proxyRoute}/login/device/code`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue