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("");