Merge pull request from GHSA-fgxv-gw55-r5fq
* fix: Authorization Bypass Through User-Controlled Key * chore: add not safe domain test
This commit is contained in:
@@ -53,6 +53,11 @@ func TestCorsHandlerWithOrigins(t *testing.T) {
|
||||
origins: []string{"http://local", "http://remote"},
|
||||
reqOrigin: "http://another",
|
||||
},
|
||||
{
|
||||
name: "not safe origin",
|
||||
origins: []string{"safe.com"},
|
||||
reqOrigin: "not-safe.com",
|
||||
},
|
||||
}
|
||||
|
||||
methods := []string{
|
||||
|
||||
Reference in New Issue
Block a user