diff --git a/Vpassbackend/Controllers/CorsConfigController.cs b/Vpassbackend/Controllers/CorsConfigController.cs index 92598cd..24d8a38 100644 --- a/Vpassbackend/Controllers/CorsConfigController.cs +++ b/Vpassbackend/Controllers/CorsConfigController.cs @@ -25,7 +25,9 @@ public IActionResult GetAllowedOrigins() var allowedOrigins = new List { "http://localhost:2027", // Flutter web - "http://127.0.0.1:2027" // Flutter web alternative + "http://127.0.0.1:2027", // Flutter web alternative + "http://localhost:3000", + "http://192.168.8.161:3000" }; // In a production setup, you would fetch this from a database or configuration diff --git a/Vpassbackend/Program.cs b/Vpassbackend/Program.cs index 7f7936b..9d37566 100644 --- a/Vpassbackend/Program.cs +++ b/Vpassbackend/Program.cs @@ -35,6 +35,8 @@ policy.WithOrigins( "http://localhost:2027", // Flutter web "http://127.0.0.1:2027", // Flutter alternative + "http://localhost:3000", + "http://192.168.8.161:3000", "https://yourproductionsite.com") .AllowAnyHeader() .AllowAnyMethod() diff --git a/Vpassbackend/bin/Debug/net8.0/Vpassbackend.dll b/Vpassbackend/bin/Debug/net8.0/Vpassbackend.dll index 41ab911..fad22ff 100644 Binary files a/Vpassbackend/bin/Debug/net8.0/Vpassbackend.dll and b/Vpassbackend/bin/Debug/net8.0/Vpassbackend.dll differ diff --git a/Vpassbackend/bin/Debug/net8.0/Vpassbackend.exe b/Vpassbackend/bin/Debug/net8.0/Vpassbackend.exe index 2e4d36c..7ed77b6 100644 Binary files a/Vpassbackend/bin/Debug/net8.0/Vpassbackend.exe and b/Vpassbackend/bin/Debug/net8.0/Vpassbackend.exe differ diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfo.cs b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfo.cs index c47e456..dc7c65d 100644 --- a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfo.cs +++ b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfo.cs @@ -13,7 +13,7 @@ [assembly: System.Reflection.AssemblyCompanyAttribute("Vpassbackend")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+9c6c061b38bb9ec8b170e872e36e360d60a970c1")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+96063b5b3126512f38b085051676478b154b4ce3")] [assembly: System.Reflection.AssemblyProductAttribute("Vpassbackend")] [assembly: System.Reflection.AssemblyTitleAttribute("Vpassbackend")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfoInputs.cache b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfoInputs.cache index f30105b..448294b 100644 --- a/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfoInputs.cache +++ b/Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfoInputs.cache @@ -1 +1 @@ -2f7e583ca45a02a95edfdfb4fcc7d09d02ff31ad990d2bd497dc130841e71c79 +f1388f64e2aca23d4f6fb8c1941d6bcdf83629b08438c2b23d7d2c2a9a532828