From 488139c914921b8627a2c7782e29b50acbfca045 Mon Sep 17 00:00:00 2001 From: frikky Date: Mon, 23 Aug 2021 12:20:19 +0200 Subject: [PATCH] Removed http requirement for local dev --- frontend/src/App.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index c5ce52fb..da780f23 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -41,7 +41,8 @@ import {isMobile} from "react-device-detect"; var globalUrl = window.location.origin // CORS used for testing purposes. Should only happen with specific port and http -if (window.location.protocol == "http:" && window.location.port === "3000") { +//window.location.protocol == "http:" && +if (window.location.port === "3000") { globalUrl = "http://localhost:5001" //globalUrl = "http://localhost:5002" }