From d1ee07fb166e69b31fffa5cc0f2f6a390bef32e5 Mon Sep 17 00:00:00 2001 From: Brent Mitton Date: Wed, 26 Aug 2020 09:38:05 -0400 Subject: [PATCH] docs: change TrustedOrigin to TrustedOrigins in README (#140) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9540e4b..ae7ab5d 100644 --- a/README.md +++ b/README.md @@ -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)