HTTPS.
This commit is contained in:
parent
f66047efd3
commit
f38f4bf44a
@ -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();
|
||||||
|
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",
|
"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": [
|
||||||
|
@ -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("");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user