🐛 多域名跨域

This commit is contained in:
微凉
2021-01-08 16:32:02 +08:00
parent 0cd4624a36
commit dcebf5257f
6 changed files with 26 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ import (
log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v2"
"io/ioutil"
"strings"
)
func ReadConf(config string) bool {
@@ -25,5 +26,6 @@ func ReadConf(config string) bool {
return false
}
log.Debugf("config:%+v",conf.Conf)
conf.Origins = strings.Split(conf.Conf.Info.SiteUrl,",")
return true
}