cors fix
This commit is contained in:
parent
d6a3783b20
commit
d8e7d44253
3
main.go
3
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
|
||||
|
||||
@ -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")),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user