mirror of
https://github.com/LCE-Hub/piston.git
synced 2026-07-17 15:57:21 +00:00
fix: cors proxy
This commit is contained in:
parent
2d086b571c
commit
bf26f9efc8
|
|
@ -69,7 +69,7 @@ function App() {
|
|||
let timeoutId: number;
|
||||
const poll = async () => {
|
||||
try {
|
||||
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/oauth/access_token`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
|
|
|||
|
|
@ -97,6 +97,7 @@ export default function UploadModal({ onClose, pat }: UploadModalProps) {
|
|||
name,
|
||||
author: api.username,
|
||||
description,
|
||||
extended_description: "", //neo: TODO: implement
|
||||
category,
|
||||
thumbnail: thumbnail.name,
|
||||
zips: zipsMapping,
|
||||
|
|
|
|||
Loading…
Reference in a new issue