added cors header

This commit is contained in:
2021-10-05 03:21:40 +02:00
parent 8eec0b3968
commit 1efc7c48be
3 changed files with 11 additions and 1 deletions

View File

@@ -34,6 +34,9 @@ type Conf struct {
APIKey string `yaml:"api_key"`
RatePerSecond int `yaml:"rate_per_sec"`
}
Httpd struct {
CORSAllowDomains string `yaml:"cors_allow_domains"`
}
}
type DBWithLock struct {