Update CORS proxy configuration
This commit is contained in:
@@ -6,7 +6,7 @@ export const getSupabaseUrl = () => {
|
||||
if (storedUrl) {
|
||||
// CORS 프록시 설정 확인
|
||||
const useProxy = localStorage.getItem('use_cors_proxy') === 'true';
|
||||
const proxyType = localStorage.getItem('proxy_type') || 'corsproxy.io';
|
||||
const proxyType = localStorage.getItem('proxy_type') || 'cloudflare';
|
||||
|
||||
if (useProxy) {
|
||||
// URL에 이미 프로토콜이 포함되어 있는지 확인
|
||||
@@ -41,7 +41,7 @@ export const getSupabaseUrl = () => {
|
||||
proxyUrl = `http://localhost:8080/proxy?url=${encodeURIComponent(urlForProxy)}`;
|
||||
break;
|
||||
default:
|
||||
proxyUrl = `https://corsproxy.io/?${encodeURIComponent(urlForProxy)}`;
|
||||
proxyUrl = `https://cors-proxy.azurewebsites.net/api/cors-proxy?url=${encodeURIComponent(urlForProxy)}`;
|
||||
}
|
||||
|
||||
console.log('CORS 프록시 URL 생성:', proxyUrl);
|
||||
@@ -75,7 +75,7 @@ export const setProxyType = (proxyType: string) => {
|
||||
|
||||
// 현재 사용 중인 프록시 유형 가져오기
|
||||
export const getProxyType = () => {
|
||||
return localStorage.getItem('proxy_type') || 'corsproxy.io';
|
||||
return localStorage.getItem('proxy_type') || 'cloudflare';
|
||||
};
|
||||
|
||||
// CORS 프록시 사용 여부 확인
|
||||
|
||||
Reference in New Issue
Block a user