burhan-syed / troddit

A web client for Reddit with authenticated logins and a variety of browsing options
https://www.troddit.com
GNU Affero General Public License v3.0
554 stars 82 forks source link

Redirect doesn't work for selfhosted docker image #107

Open h4wwk3ye opened 1 year ago

h4wwk3ye commented 1 year ago

I have self hosted the troddit arm64 docker image, but the redirect extensions (used redirector and LibRedirect) fail to load the website because get calls to oauth.reddit.com are failing. Reloading the page however loads the page successfully. Login and everything else works fine it's just the redirect using the extensions that fails. I tried troddit.com instead but that works fine so not sure what really is happening.

burhan-syed commented 1 year ago

Do you have any error messages from the failed get calls?

h4wwk3ye commented 1 year ago

CORS error are showing in the console

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://oauth.reddit.com/search?q=selfhosted&after=&sort=hot&t=&raw_json=1&sr_detail=true&include_over_18=0. (Reason: CORS request did not succeed). Status code: (null).

And some errors related to nextJs

Error: Network Error
    NextJS 54

After few seconds reddit.domain.tld/r/subreddit changes to the search query instead reddit.domain.tld/search?q=subreddit

Also the icon doesn't show up on the tab like troddit.com