add no cors config

This commit is contained in:
Xhofe
2021-12-25 16:44:32 +08:00
parent 91c2c21522
commit 36f07ee194
6 changed files with 23 additions and 1 deletions

View File

@ -19,7 +19,7 @@ func InitIndex() {
index, err = public.Public.Open("index.html")
}
if err != nil {
log.Fatalf(err.Error())
//log.Fatalf(err.Error())
return
}
data, _ := ioutil.ReadAll(index)