-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(middleware/csrf): TrustedOrigins using https://*.example.com sty…
…le subdomains (#2925) * feat(middleware/csrf): TrustedOrigins using https://*.example.com style subdomains * Update middleware/csrf/csrf_test.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * test(middleware/csrf): parallel test * test(middleware/csrf): parallel fix * chmore(middleware/csrf): no pkg/log * feat(middleware/csrf): Add tests for Trusted Origin deeply nested subdomain * test(middleware/csrf): fix loop variable tt being captured * docs(middleware/csrf): TrustedOrigins validates and normalizes note * test(middleware/csrf): fix Benchmark_Middleware_CSRF_Check --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Juan Calderon-Perez <[email protected]>
- Loading branch information
1 parent
95c1814
commit 643b4b3
Showing
5 changed files
with
376 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
643b4b3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.Benchmark_Etag
198.5
ns/op 0 B/op 0 allocs/op97.45
ns/op 0 B/op 0 allocs/op2.04
Benchmark_Middleware_Favicon
210.3
ns/op 12 B/op 4 allocs/op91.88
ns/op 3 B/op 1 allocs/op2.29
This comment was automatically generated by workflow using github-action-benchmark.