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

Discord isn't working. #206

Open
zisra opened this issue Jun 14, 2022 · 5 comments
Open

Discord isn't working. #206

zisra opened this issue Jun 14, 2022 · 5 comments

Comments

@zisra
Copy link

zisra commented Jun 14, 2022

I think I know the cause of the issue ...
Relative URLs are not supported. For example, if I go to myunblocker.link/proxy/example.com , and that site redirects to a relative link, like this:
document.location.href = "/relativeurl";
The proxy redirects to myunblocker.link/test instead of myunblocker.link/proxy/example.com/test

@ghost
Copy link

ghost commented Jun 15, 2022

That's an issue a good amount of online web proxies have.

@nfriedly
Copy link
Owner

nfriedly commented Jun 15, 2022

The backend actually detects and corrects redirects that go the way your example did (because it can check the refer header).

However, I think discord is probably using the pushState API, which changes the URL without touching the backend. I have some experimental code in the v3 branch to handle this in the front-end, but currently it breaks as much stuff as it fixes.

@zisra
Copy link
Author

zisra commented Jun 16, 2022

@nfriedly I tried my example, and it didn‘t work when it.

  • Any way I can help fix this issue or roadmap for a fix?

@nfriedly
Copy link
Owner

I'm not sure, I feel like I kind of got in over my head with the v3 branch. Shadow DOM throws it off and I haven't figured out a good solution.

The todo page on the wiki has some notes, although I haven't touched anything here in a little while, so I'm not sure if it's fully up-to-date or not. https://github.com/nfriedly/node-unblocker/wiki/Todo

@Susdevlmao
Copy link

what the link of the proxy ur using @zisra just to check something here

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

No branches or pull requests

3 participants