Commit cdf4dc5

Robinhood <ansarithameem674@gmail.com>
2023-07-15 13:36:22
fix:cors issue
v2
1 parent d819682
Changed files (2)
captive_portal
web
captive_portal/data/js/index.js.gz
Binary file
web/src/Home.tsx
@@ -129,7 +129,7 @@ const Home = () => {
   };
 
   const fetchHandshakes = async () => {
-    const result = await fetch("http://172.0.0.1/get_datas");
+    const result = await fetch("/get_datas");
     // const result = await fetch("/temp/temp-datas.json")
     const data = await result.json();
     setHandshakes(data.handshakes);