From d69407e8649676d74aa7bfff33b9830fde43d60b Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Sat, 27 Apr 2024 09:11:12 +0300 Subject: [PATCH] front cors --- front/src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/constants.ts b/front/src/constants.ts index 57cc0b1..7c4a256 100644 --- a/front/src/constants.ts +++ b/front/src/constants.ts @@ -1 +1 @@ -export const SERVER_URL = import.meta.env.VITE_SERVER_URL ?? 'http://localhost' \ No newline at end of file +export const SERVER_URL = import.meta.env.VITE_SERVER_URL ?? window.location.origin \ No newline at end of file