-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cors regression test #650
Cors regression test #650
Conversation
pbs_light_test.go
Outdated
} | ||
cors.ServeHTTP(rr, req) | ||
assert.NotEqual(t, "*", rr.Header().Get("Access-Control-Allow-Origin")) | ||
} |
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.
Do we want to test if the Access-Control-Allow-Origin
matches the Origin
we set in the request?
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.
Yes... very good idea. Done
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.
Looks good to me, but there may be a possible improvement,
* Added a regression test for the cors bug. * Fixed the test. * Better cors regression test.
* Added a regression test for the cors bug. * Fixed the test. * Better cors regression test.
* Added a regression test for the cors bug. * Fixed the test. * Better cors regression test.
Preventing #648 more safely.