react-version #1
@ -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();
|
||||
|
1
GrossesMitaines/grosses-mitaines-ui/.env
Normal file
1
GrossesMitaines/grosses-mitaines-ui/.env
Normal file
@ -0,0 +1 @@
|
||||
HTTPS="true"
|
@ -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": [
|
||||
|
@ -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("");
|
||||
|
Loading…
Reference in New Issue
Block a user