Skip to content
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

Merged
merged 3 commits into from
Aug 13, 2018
Merged

Cors regression test #650

merged 3 commits into from
Aug 13, 2018

Conversation

dbemiller
Copy link
Contributor

Preventing #648 more safely.

@dbemiller dbemiller requested review from cirla and hhhjort and removed request for cirla August 8, 2018 14:51
cirla
cirla previously approved these changes Aug 8, 2018
}
cors.ServeHTTP(rr, req)
assert.NotEqual(t, "*", rr.Header().Get("Access-Control-Allow-Origin"))
}
Copy link
Collaborator

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?

Copy link
Contributor Author

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

hhhjort
hhhjort previously approved these changes Aug 8, 2018
Copy link
Collaborator

@hhhjort hhhjort left a 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,

@dbemiller dbemiller dismissed stale reviews from hhhjort and cirla via cbd3b5a August 10, 2018 12:48
@hhhjort hhhjort merged commit e8b6513 into master Aug 13, 2018
@hhhjort hhhjort deleted the cors-regression-test branch August 13, 2018 15:41
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 1, 2020
* Added a regression test for the cors bug.

* Fixed the test.

* Better cors regression test.
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 2, 2020
* Added a regression test for the cors bug.

* Fixed the test.

* Better cors regression test.
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 4, 2020
* Added a regression test for the cors bug.

* Fixed the test.

* Better cors regression test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants