Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3245 +/- ##
==========================================
+ Coverage 93.34% 96.23% +2.88%
==========================================
Files 43 46 +3
Lines 4735 4430 -305
==========================================
- Hits 4420 4263 -157
+ Misses 192 167 -25
+ Partials 123 0 -123 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
A configuration such as
AllowOrigins: []string{"https://EXAMPLE.com"}accepts the browser originhttps://example.comviastrings.EqualFold, but sends the configured spelling back inAccess-Control-Allow-Origin. The browser then rejects both normal and preflight responses: Fetch §4.10 requires the header to equal the byte-serialized request origin.Return the matched request origin from the default matcher so the accepted origin also passes that browser check.
Validation:
go test -race -count=1 ./...passes with proxy variables removed for loopback tests.go vet ./..., gofmt andgit diff --checkpass.Summary by CodeRabbit