mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-04 20:03:04 +02:00
cors fix typo, default config value.
This commit is contained in:
parent
789d812b3d
commit
47689d5372
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ func (Server) Init(cmd *cobra.Command) error {
|
|||
return err
|
||||
}
|
||||
|
||||
cmd.PersistentFlags().StringSlice("cors", []string{"http://icms:3001"}, "list of allowed origins for CORS")
|
||||
cmd.PersistentFlags().StringSlice("cors", []string{"*"}, "list of allowed origins for CORS")
|
||||
if err := viper.BindPFlag("cors", cmd.PersistentFlags().Lookup("cors")); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue