-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
WIP: Fixing CORS error in genericapiserver #27386
Conversation
I think I have a fix but I cant get the test to pass, which obviously means that my fix is not correct. When I run the test, I see that the CORS handler is registered. But it is not called when I send the request. |
GCE e2e build/test passed for commit 27c133b. |
@nikhiljindal PR needs rebase |
Since this was listed as a regression, do we need to commit to this for 1.4? |
This PR hasn't been active in 90 days. Closing this PR. Please reopen if you would like to work towards merging this change, if/when the PR is ready for the next round of review. cc @nikhiljindal @smarterclayton You can add 'keep-open' label to prevent this from happening again, or add a comment to keep it open another 90 days |
master, etcdserver, _, _ := newMaster(t) | ||
defer etcdserver.Terminate(t) | ||
|
||
server := httptest.NewServer(master.HandlerContainer.ServeMux) |
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.
I think this should be server := httptest.NewServer(master.Handler)
or server := httptest.NewServer(master.InsecureHandler)
t.Fatalf("unexpected error: %v", err) | ||
} | ||
|
||
if resp.StatusCode != http.StatusOK { |
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.
In case of an OPTIONS request, we are expecting http.StatusNoContent
Ref #24086
This change is