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

Fix XHR redirects when dnslink is enabled #516

Merged
merged 1 commit into from
Jul 5, 2018

Conversation

lidel
Copy link
Member

@lidel lidel commented Jul 5, 2018

Dnslink lookup is disabled by default, but if user opted-in in latest version websites were broken due to false-positive late gateway redirects of XHR requests.

This PR fixes dnslink regression introduced by #511
and adds tests to guard against the problem in future.

Some deeper refactoring is due, but that is something for separate PR.
I want to land this PR as soon as possible, so that dnslink works again.

Dnslink lookup is disabled by default, but if user opted-in to it,
many websites were broken due to invalid gateway redirects.

This change fixes regression introduced by:
#511
and adds tests to guard against the problem in future.
@lidel lidel merged commit 99d9f12 into master Jul 5, 2018
@lidel lidel deleted the fix/dnslink-breaking-cors-xhr branch July 5, 2018 21:54
@lidel lidel added the kind/bug A bug in existing code (including security flaws) label Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant