Fixes README
This commit is contained in:
parent
43967fed89
commit
5e6551a50c
@ -64,7 +64,7 @@ func main() {
|
|||||||
// same as
|
// same as
|
||||||
// config := cors.DefaultConfig()
|
// config := cors.DefaultConfig()
|
||||||
// config.AllowAllOrigins = true
|
// config.AllowAllOrigins = true
|
||||||
// router.Use(cors.Default())
|
// router.Use(cors.New(config))
|
||||||
router.Use(cors.Default())
|
router.Use(cors.Default())
|
||||||
router.Run()
|
router.Run()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user