From 1196680004fefaefa520f9f3429f3d45da8a4fe5 Mon Sep 17 00:00:00 2001 From: ZaniaDevelopper Date: Wed, 21 Feb 2018 15:19:09 +0300 Subject: [PATCH] Add comment in example Former-commit-id: 2b9d7a569ed4c5d78cd5dd49865df1cf381619fc --- _examples/experimental-handlers/cors/simple/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_examples/experimental-handlers/cors/simple/main.go b/_examples/experimental-handlers/cors/simple/main.go index a4557b20..94593b08 100644 --- a/_examples/experimental-handlers/cors/simple/main.go +++ b/_examples/experimental-handlers/cors/simple/main.go @@ -13,6 +13,8 @@ import ( func main() { app := iris.New() + + // `crs := cors.NewAllowAllPartyMiddleware()`, or: crs := cors.NewPartyMiddleware(cors.Options{ AllowedOrigins: []string{"*"}, // allows everything, use that to change the hosts. AllowedMethods: router.AllMethods[:],