Browse Source

Remove inexistent function from README (#32)

Philipp Alexander Frank 7 years ago
parent
commit
df6cfb7ff4
1 changed files with 0 additions and 1 deletions
  1. 0 1
      README.md

+ 0 - 1
README.md

@@ -69,7 +69,6 @@ func main() {
 	// - Preflight requests cached for 12 hours
 	config := cors.DefaultConfig()
 	config.AllowOrigins = []string{"http://google.com"}
-	config.AddAllowOrigins("http://facebook.com")
 	// config.AllowOrigins == []string{"http://google.com", "http://facebook.com"}
 
 	router.Use(cors.New(config))