From 347f5127929b17671c75734af5a374ec4f39b5ae Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Fri, 8 Jul 2022 15:19:32 +1000 Subject: Revert back to using vite-proxy for avoiding CORS issues --- src/lib.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib.ts') diff --git a/src/lib.ts b/src/lib.ts index faec861..d737879 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -7,7 +7,7 @@ import {LayoutOptions} from './layout'; import {getBreakpoint, Breakpoint, getScrollBarWidth, onTouchDevice} from './util'; // For server requests -const SERVER_URL = 'http://localhost:8000/cgi-bin/data.py' +const SERVER_URL = window.location.href + 'cgi-bin/data.py' export async function queryServer(params: URLSearchParams){ // Construct URL let url = new URL(SERVER_URL); -- cgit v1.2.3