File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 44 "net/http"
55
66 "github.com/PythonHacker24/linux-acl-management-backend/api/middleware"
7+ "github.com/PythonHacker24/linux-acl-management-backend/config"
78 "github.com/PythonHacker24/linux-acl-management-backend/internal/auth"
89 "github.com/PythonHacker24/linux-acl-management-backend/internal/health"
910 "github.com/PythonHacker24/linux-acl-management-backend/internal/search"
@@ -15,7 +16,7 @@ import (
1516func RegisterRoutes (mux * http.ServeMux , sessionManager * session.Manager ) {
1617
1718 /* move it to config file */
18- allowedOrigin := [] string { "http://localhost:3000" }
19+ allowedOrigin := config . BackendConfig . Server . Cors . AllowedOrigins
1920 allowedMethods := []string {"GET" , "POST" , "OPTIONS" }
2021 allowedHeaders := []string {"*" }
2122
You can’t perform that action at this time.
0 commit comments