adding cors for cors issue

This commit is contained in:
areeqakbr 2025-06-16 03:08:10 +00:00
parent 45dc3e80da
commit 0bf5aa1991
2 changed files with 5 additions and 2 deletions

BIN
dev-nam Executable file

Binary file not shown.

View File

@ -15,7 +15,10 @@ func CORSMiddleware() gin.HandlerFunc {
"http://localhost:3000",
"http://localhost:3001",
"http://127.0.0.1:3000",
"http://127.0.0.1:5173", // Add production URL
"http://127.0.0.1:5173",
"http://103.110.8.103:80",// Add production URL
"http://103.110.8.103",
}
// Check if origin is in allowed list