[BUG] Can't change Invidious settings over TOR onionsite. #3

Closed
opened 2024-08-14 13:27:24 -04:00 by phantom · 4 comments
Contributor

Steps to reproduce: change a setting in Invidious over the onionsite and press "save".

What happens: Invidious doesn't change any settings and makes the page "indefinitely load".

Steps to reproduce: change a setting in Invidious over the onionsite and press "save". What happens: Invidious doesn't change any settings and makes the page "indefinitely load".
Owner

I have no idea why this happens wtf

I have no idea why this happens wtf
Author
Contributor

You may have to add the onionsite in your Invidious configuration files like how Nextcloud does it 'overwrite.cli.url' => 'https://example.com/nextcloud', or maybe Invidious doesn't like clearnet w/ TOR instances?

You may have to add the onionsite in your Invidious configuration files like how Nextcloud does it `'overwrite.cli.url' => 'https://example.com/nextcloud',` or maybe Invidious doesn't like clearnet w/ TOR instances?
Owner

Fixed in 8ed2326fef.
If I'm not wrong, browsers will just ignore any Set-Cookie header that doesn't contain the domain where the client is logging in.
So if I try to login or change the settings on invidious, the browser will read domain=inv.nadeko.net (which is the domain configured inside the Invidious settings) from the Set-Cookie header and it will ignore it because the domain is inv.nadekonw7plitnjuawu6ytjsl7jlglk2t6pyq6eftptmiv3dvqndwvyd.onion and not inv.nadeko.net

Thanks for the insight

Fixed in https://git.nadeko.net/Fijxu/etc-configs/commit/8ed2326fef8293aff9a83f1630adc95498dd2e2b. If I'm not wrong, browsers will just ignore any `Set-Cookie` header that doesn't contain the domain where the client is logging in. So if I try to login or change the settings on invidious, the browser will read `domain=inv.nadeko.net` (which is the [domain](https://github.com/iv-org/invidious/blob/master/config/config.example.yml#L111) configured inside the Invidious settings) from the `Set-Cookie` header and it will ignore it because the domain is `inv.nadekonw7plitnjuawu6ytjsl7jlglk2t6pyq6eftptmiv3dvqndwvyd.onion` and not `inv.nadeko.net` Thanks for the insight
Fijxu closed this issue 2024-08-14 17:10:35 -04:00
Author
Contributor

Thanks for fixing! 🧅

Thanks for fixing! 🧅
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Fijxu/etc-configs#3
No description provided.