myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit 3bc6a8cfcdfe06d5966c7426d6cc8408cf6521b8
parent 94a5a1c167ab9fd5e6116c573f8662103995b3f2
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Fri,  1 Nov 2024 09:17:22 +0100

fix: Vite dev cors header

Diffstat:
M.env | 2+-
Mdev/env | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.env b/.env @@ -28,7 +28,7 @@ API_PORT=8000 # Redirect url for magic links API_REDIRECT_URI=http://127.0.0.1:5173/authverify # Backend API CORS allowed origins -API_CORS_ALLOW_ORIGIN=http://127.0.0.1:5173 +API_CORS_ALLOW_ORIGIN=http://localhost:5173 # JWT secret for magic links (`openssl rand -base64 48`) API_JWT_SECRET= # JWT TTL in seconds, make it biger than VITE_SESSION_TTL, 60m diff --git a/dev/env b/dev/env @@ -28,7 +28,7 @@ export API_PORT=8000 # Redirect url for magic links export API_REDIRECT_URI=http://127.0.0.1:5173/authverify # Backend API CORS allowed origins -export API_CORS_ALLOW_ORIGIN=http://127.0.0.1:5173 +export API_CORS_ALLOW_ORIGIN=http://localhost:5173 # JWT secret for magic links (`openssl rand -base64 48`) export API_JWT_SECRET= # JWT TTL in seconds, make it biger than VITE_SESSION_TTL, 60m