parent
35f1b07e48
commit
41e1f941bb
1 changed files with 41 additions and 118 deletions
|
|
@ -2587,10 +2587,10 @@ func TestStreamableOriginProtection(t *testing.T) {
|
|||
wantStatusCode int
|
||||
}{
|
||||
{
|
||||
name: "default protection with Origin header",
|
||||
name: "no protection with Origin header",
|
||||
protection: nil,
|
||||
requestOrigin: "https://example.com",
|
||||
wantStatusCode: http.StatusForbidden,
|
||||
wantStatusCode: http.StatusOK,
|
||||
},
|
||||
{
|
||||
name: "custom protection with trusted origin and same Origin",
|
||||
|
|
|
|||
Loading…
Reference in a new issue