Skip to content

Commit

Permalink
Merge pull request #82 from nlatham1999/master
Browse files Browse the repository at this point in the history
Edited ReadMe
  • Loading branch information
thinkerou committed Oct 11, 2021
2 parents 2e2ab4a + 028d2d3 commit 1174f0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -69,11 +69,13 @@ func main() {
config := cors.DefaultConfig()
config.AllowOrigins = []string{"http://google.com"}
// config.AllowOrigins == []string{"http://google.com", "http://facebook.com"}
// config.AllowAllOrigins = true

router.Use(cors.New(config))
router.Run()
}
```
note: while Default() allows all origins, DefaultConfig() does not and you will still have to use AllowAllOrigins

### Default() allows all origins

Expand Down

0 comments on commit 1174f0f

Please sign in to comment.