diff --git a/main.go b/main.go index 9f40d9f..58036c2 100644 --- a/main.go +++ b/main.go @@ -41,8 +41,9 @@ func main() { http.MethodPatch, http.MethodDelete, }, - AllowedHeaders: []string{"*"}, + AllowedHeaders: []string{"Authorization", "Content-Type", "*"}, AllowCredentials: true, + Debug: true, }) //init api routes diff --git a/web/components/projectList.go b/web/components/projectList.go index e990046..722afba 100644 --- a/web/components/projectList.go +++ b/web/components/projectList.go @@ -56,7 +56,7 @@ func EditProject(project *ent.Project) g.Node { b.ImgSq64, ), ), - Input(Type("hidden"), Value(strconv.Itoa(project.ID)), e.Name("project_id")), + Input(e.Type("hidden"), e.Value(strconv.Itoa(project.ID)), e.Name("project_id")), //b.Label("ID: "+strconv.Itoa(project.ID), Name("project_id")), b.Label("Name"), b.Textarea(project.Name, b.Rows(1), e.Name("project_name")),