adding cors for cors issue
This commit is contained in:
parent
45dc3e80da
commit
0bf5aa1991
|
|
@ -15,7 +15,10 @@ func CORSMiddleware() gin.HandlerFunc {
|
||||||
"http://localhost:3000",
|
"http://localhost:3000",
|
||||||
"http://localhost:3001",
|
"http://localhost:3001",
|
||||||
"http://127.0.0.1:3000",
|
"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
|
// Check if origin is in allowed list
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue