This commit is contained in:
MarcEricMartel 2022-11-01 12:54:52 -07:00
parent f66047efd3
commit f38f4bf44a
4 changed files with 4 additions and 3 deletions

View File

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

View File

@ -0,0 +1 @@
HTTPS="true"

View File

@ -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": [

View File

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