Removed http requirement for local dev

This commit is contained in:
frikky
2021-08-23 12:20:19 +02:00
parent fa8262dfda
commit 488139c914
+2 -1
View File
@@ -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"
}