mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
Add comment in example
Former-commit-id: 2b9d7a569ed4c5d78cd5dd49865df1cf381619fc
This commit is contained in:
parent
7a29519c5a
commit
1196680004
|
@ -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[:],
|
||||
|
|
Loading…
Reference in New Issue
Block a user