Skip to content

Commit

Permalink
chore(middleware/csrf): Update config TrustedOrigin comments (#2963)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixcolors committed Apr 17, 2024
1 parent 726c499 commit 4d1e993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions middleware/csrf/config.go
Expand Up @@ -95,9 +95,9 @@ type Config struct {
// For secure requests, that do not include the Origin header, the Referer
// header must match the Host header or one of the TrustedOrigins.
//
// This supports subdomain matching, so you can use a value like "https://.example.com"
// to allow any subdomain of example.com to submit requests.
//
// This supports matching subdomains at any level. This means you can use a value like
// `"https://*.example.com"` to allow any subdomain of `example.com` to submit requests,
// including multiple subdomain levels such as `"https://sub.sub.example.com"`.
//
// Optional. Default: []
TrustedOrigins []string
Expand Down

0 comments on commit 4d1e993

Please sign in to comment.