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

Login serves a raw JSON file while JavaScript is disabled #2960

Open
halotroop2288 opened this issue Jul 26, 2024 · 0 comments
Open

Login serves a raw JSON file while JavaScript is disabled #2960

halotroop2288 opened this issue Jul 26, 2024 · 0 comments

Comments

@halotroop2288
Copy link

Describe the Bug

The login page serves a raw JSON file as a response to a login attempt while JavaScript is blocked on the webpage.

This issue serves as a quick answer for others having this problem, but I think it could also be handled better by the backend. Feel free to close this if it is considered invalid.

Steps to Reproduce the Bug

  1. Install NoScript or disable JavaScript on your browser
  2. Go to https://viewtube.io
  3. Press the Sign In button in the top right
  4. Enter your credentials and press enter
  5. Be served a raw JSON file as a response.

Expected Behavior

The error is served as a text box on the login page.

Screenshot/Screen recording

Screenshot

Device Info

  • Device: Desktop PC
  • OS: Arch Linux 6.10.0-arch1-2
  • Browser: LibreWolf 123.0-1
  • Version: Unknown. Probably 0.16.2 (latest at time of writing)

Additional Context

The exact response from the login page is:

{"message":"Cannot POST /login","error":"Not Found","statusCode":404}

Solution for end-users

  • Enable JavaScript in your browser settings
  • Trust viewtube.io (or whatever instance you are using) in your NoScript configuration.
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

1 participant