1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 04:21:57 +00:00

Add comment in example

Former-commit-id: 2b9d7a569ed4c5d78cd5dd49865df1cf381619fc
This commit is contained in:
ZaniaDevelopper
2018-02-21 15:19:09 +03:00
parent 7a29519c5a
commit 1196680004

View File

@@ -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[:],