From 8638ebd4c2db816ce81296f1d34622c476014a55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Cadenas?= Date: Fri, 5 May 2023 15:57:47 +0200 Subject: [PATCH] hotfix1 for deployment --- restapi/index.ts | 2 +- webapp/src/axios.ts | 2 +- webapp/src/pages/login/Login.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/restapi/index.ts b/restapi/index.ts index 06a15eb..0228fce 100644 --- a/restapi/index.ts +++ b/restapi/index.ts @@ -35,7 +35,7 @@ mongoose.connect("mongodb+srv://asw2b:asw2b@lomap.9zrwedt.mongodb.net/?retryWrit ); -app.use(cors({origin:"http://localhost:3000"})) +app.use(cors({origin:"https://localhost:3000"})) app.use(cookieParser()); diff --git a/webapp/src/axios.ts b/webapp/src/axios.ts index 7844749..4067d60 100644 --- a/webapp/src/axios.ts +++ b/webapp/src/axios.ts @@ -1,5 +1,5 @@ import axios from "axios"; export const makeRequest = axios.create({ - baseURL: "http://172.162.240.176:8800" + baseURL: "https://172.162.240.176:8800" }); \ No newline at end of file diff --git a/webapp/src/pages/login/Login.tsx b/webapp/src/pages/login/Login.tsx index 0c9e923..99dc119 100644 --- a/webapp/src/pages/login/Login.tsx +++ b/webapp/src/pages/login/Login.tsx @@ -28,7 +28,7 @@ const Login = () => { InputProps={{ endAdornment: (