Fix CORS and make cookies live longer
This commit is contained in:
parent
c4821ee0d3
commit
75b3aa7249
2 changed files with 3 additions and 3 deletions
|
@ -1,9 +1,9 @@
|
|||
APP_NAME=thesis
|
||||
BIND=0.0.0.0
|
||||
BIND=localhost
|
||||
PORT=3880
|
||||
DOMAIN=localhost
|
||||
DATABASE_URL=mysql://diesel:fuel@localhost/thesis
|
||||
JWT_SECRET=taiCoh4dEvoo0IefEvoo0IefaiNai7uv
|
||||
SECRET=la4kuuPhSai2johyIephaa4fahm5Siey
|
||||
ALLOWED_ORIGIN=localhost
|
||||
ALLOWED_ORIGIN=http://localhost:3880
|
||||
COOKIE_SECURE=false
|
||||
|
|
|
@ -84,7 +84,7 @@ async fn main() -> std::io::Result<()> {
|
|||
.domain(get_env("DOMAIN"))
|
||||
.name(get_env("APP_NAME"))
|
||||
.path("/")
|
||||
.max_age(Duration::days(1).num_seconds())
|
||||
.max_age(Duration::days(30).num_seconds())
|
||||
.secure(false),
|
||||
))
|
||||
.data(get_pool())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue