Skip to content

Commit

Permalink
docs: change TrustedOrigin to TrustedOrigins in README (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
mittonface committed Aug 26, 2020
1 parent 4be1463 commit d1ee07f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ import (

func main() {
r := mux.NewRouter()
csrfMiddleware := csrf.Protect([]byte("32-byte-long-auth-key"), csrf.TrustedOrigin([]string{"ui.domain.com"}))
csrfMiddleware := csrf.Protect([]byte("32-byte-long-auth-key"), csrf.TrustedOrigins([]string{"ui.domain.com"}))

api := r.PathPrefix("/api").Subrouter()
api.Use(csrfMiddleware)
Expand Down

0 comments on commit d1ee07f

Please sign in to comment.