Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
do not allow credentials for these test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo82148 committed Nov 26, 2019
1 parent be3c512 commit b60791c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ func TestNeitherOriginHeaderAndAllowOriginGiven(t *testing.T) {
return service.Send(ctx, http.StatusOK, "ok")
}
testee := goacors.New(service, &goacors.Config{
AllowCredentials: true,
AllowOrigins: []string{"*"},
AllowOrigins: []string{"*"},
})(h)
err := testee(ctx, rw, req)
if err != nil {
Expand All @@ -41,8 +40,7 @@ func TestEmptyOriginHeader(t *testing.T) {
return service.Send(ctx, http.StatusOK, "ok")
}
testee := goacors.New(service, &goacors.Config{
AllowCredentials: true,
AllowOrigins: []string{"*"},
AllowOrigins: []string{"*"},
})(h)
err := testee(ctx, rw, req)
if err != nil {
Expand Down

0 comments on commit b60791c

Please sign in to comment.