react-version #1

Merged
memartel_loc merged 290 commits from react-version into main 2023-11-04 09:48:15 -04:00
4 changed files with 4 additions and 3 deletions
Showing only changes of commit f38f4bf44a - Show all commits

View File

@ -15,7 +15,7 @@ builder.Services.AddCors(options => {
options.AddPolicy(name: MyAllowSpecificOrigins, options.AddPolicy(name: MyAllowSpecificOrigins,
policy => { policy => {
policy.WithOrigins("http://localhost:3000", policy.WithOrigins("http://localhost:3000",
"http://localhost:3001") "https://localhost:3000")
.AllowAnyMethod() .AllowAnyMethod()
.AllowAnyHeader() .AllowAnyHeader()
.AllowCredentials(); .AllowCredentials();

View File

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

View File

@ -32,7 +32,7 @@
"build": "react-scripts build", "build": "react-scripts build",
"test": "react-scripts test", "test": "react-scripts test",
"eject": "react-scripts eject", "eject": "react-scripts eject",
"startsrv": "cd ../GrossesMitainesAPI/ & dotnet run" "startsrv": "react-scripts start & cd ../GrossesMitainesAPI/ & dotnet run"
}, },
"eslintConfig": { "eslintConfig": {
"extends": [ "extends": [

View File

@ -2,7 +2,7 @@ import { useState } from "react";
import { Button } from "react-bootstrap"; import { Button } from "react-bootstrap";
const Login = () => { const Login = () => {
const [rememberme, setPersistence] = useState(false); const [rememberme, setPersistence] = useState(true);
const [email, setEmail] = useState(""); const [email, setEmail] = useState("");
const [password, setPassword] = useState(""); const [password, setPassword] = useState("");
const [returnmess, returnMessage] = useState(""); const [returnmess, returnMessage] = useState("");