From f38f4bf44a441b8159314ea34c15f15f5b4cc80b Mon Sep 17 00:00:00 2001 From: MarcEricMartel <74071476+MarcEricMartel@users.noreply.github.com> Date: Tue, 1 Nov 2022 12:54:52 -0700 Subject: [PATCH] HTTPS. --- GrossesMitaines/GrossesMitainesAPI/Program.cs | 2 +- GrossesMitaines/grosses-mitaines-ui/.env | 1 + GrossesMitaines/grosses-mitaines-ui/package.json | 2 +- GrossesMitaines/grosses-mitaines-ui/src/pages/Login.js | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 GrossesMitaines/grosses-mitaines-ui/.env diff --git a/GrossesMitaines/GrossesMitainesAPI/Program.cs b/GrossesMitaines/GrossesMitainesAPI/Program.cs index 67644cf..a673351 100644 --- a/GrossesMitaines/GrossesMitainesAPI/Program.cs +++ b/GrossesMitaines/GrossesMitainesAPI/Program.cs @@ -15,7 +15,7 @@ builder.Services.AddCors(options => { options.AddPolicy(name: MyAllowSpecificOrigins, policy => { policy.WithOrigins("http://localhost:3000", - "http://localhost:3001") + "https://localhost:3000") .AllowAnyMethod() .AllowAnyHeader() .AllowCredentials(); diff --git a/GrossesMitaines/grosses-mitaines-ui/.env b/GrossesMitaines/grosses-mitaines-ui/.env new file mode 100644 index 0000000..b629d2e --- /dev/null +++ b/GrossesMitaines/grosses-mitaines-ui/.env @@ -0,0 +1 @@ +HTTPS="true" \ No newline at end of file diff --git a/GrossesMitaines/grosses-mitaines-ui/package.json b/GrossesMitaines/grosses-mitaines-ui/package.json index 0421fe3..751706c 100644 --- a/GrossesMitaines/grosses-mitaines-ui/package.json +++ b/GrossesMitaines/grosses-mitaines-ui/package.json @@ -32,7 +32,7 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "startsrv": "cd ../GrossesMitainesAPI/ & dotnet run" + "startsrv": "react-scripts start & cd ../GrossesMitainesAPI/ & dotnet run" }, "eslintConfig": { "extends": [ diff --git a/GrossesMitaines/grosses-mitaines-ui/src/pages/Login.js b/GrossesMitaines/grosses-mitaines-ui/src/pages/Login.js index 941a2c2..8b2a00e 100644 --- a/GrossesMitaines/grosses-mitaines-ui/src/pages/Login.js +++ b/GrossesMitaines/grosses-mitaines-ui/src/pages/Login.js @@ -2,7 +2,7 @@ import { useState } from "react"; import { Button } from "react-bootstrap"; const Login = () => { - const [rememberme, setPersistence] = useState(false); + const [rememberme, setPersistence] = useState(true); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [returnmess, returnMessage] = useState("");