Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Vpassbackend/Controllers/CorsConfigController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public IActionResult GetAllowedOrigins()
var allowedOrigins = new List<string>
{
"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
Expand Down
2 changes: 2 additions & 0 deletions Vpassbackend/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Binary file modified Vpassbackend/bin/Debug/net8.0/Vpassbackend.dll
Binary file not shown.
Binary file modified Vpassbackend/bin/Debug/net8.0/Vpassbackend.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion Vpassbackend/obj/Debug/net8.0/Vpassbackend.AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2f7e583ca45a02a95edfdfb4fcc7d09d02ff31ad990d2bd497dc130841e71c79
f1388f64e2aca23d4f6fb8c1941d6bcdf83629b08438c2b23d7d2c2a9a532828