chore: add origin flag to config cors

This commit is contained in:
Steven
2024-04-07 22:15:15 +08:00
parent b5893aa60b
commit 8101a5e0b1
3 changed files with 32 additions and 12 deletions

View File

@@ -32,6 +32,8 @@ type Profile struct {
Version string `json:"version"`
// Frontend indicate the frontend is enabled or not
Frontend bool `json:"-"`
// Origins is the list of allowed origins
Origins []string `json:"-"`
}
func (p *Profile) IsDev() bool {