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

Captcha doesn't show up. #39

Closed
VolkerSchlegel opened this issue Mar 26, 2021 · 11 comments
Closed

Captcha doesn't show up. #39

VolkerSchlegel opened this issue Mar 26, 2021 · 11 comments
Labels
status:patch-released Patched in current stable release type:bug Something isn't working

Comments

@VolkerSchlegel
Copy link

Describe the bug
The hCaptcha that you have to complete after filling in your login credentials is not there

Screenshot
2021-03-26-202500_1280x720_scrot

Desktop (please complete the following information):

  • Platform: Raspbian
  • Architecture: arm32
  • Electron version: v12.0.1
  • Application version: 1.2.1

Additional context
I installed it via Pi-Apps

@VolkerSchlegel VolkerSchlegel added the type:bug Something isn't working label Mar 26, 2021
@SpacingBat3
Copy link
Owner

SpacingBat3 commented Mar 26, 2021

Workaround:
Try to disable CSP and relaunch the application, I think I haven't included any Captha website to whitelist (you can re-enable it after logging in)...

@SpacingBat3 SpacingBat3 added the status:confirmed Issues that could be reproduced label Mar 28, 2021
SpacingBat3 added a commit that referenced this issue Apr 4, 2021
- Changed name and icon of the application (to WebCord).
- Made application ready for the repo name change.
- Added "Inspect", "Copy link" and "Copy link text" options in the right-click context menu.
- Implemented multiple switches to customize the behaviour of the CSP.
- Included hCaptcha websites to the Content Security Policy (#39).
- Implemented "Developer mode" switch.
- Made some menu bar improvements.
- Updated "electron-json-config" dependency to latest "beta" release.
- Splitted config to multiple files (this should make it less likely to broke itself).
- Added support for the source maps (for better debbuging with Typescript).
- Enabled strict syntax check at building with TSC.
- Updated Electron to the newer patch version (12.0.2).
- Updated Typescript to the newer patch version (4.2.3).
- Updated Eslint to the newer minior version (7.23.0).
- Improved userAgent.ts for the MacOS and Windows.
- Done some other minior code improvements.
@SpacingBat3
Copy link
Owner

This should be fixed in the latest release.

@SpacingBat3 SpacingBat3 removed their assignment Apr 4, 2021
@SpacingBat3
Copy link
Owner

SpacingBat3 commented Apr 10, 2021

Reopening, because hCaptcha has updated their service, it uses now new URLs (like newassets.hcaptcha.com) that I need to add to CSP as well...

@SpacingBat3
Copy link
Owner

This should be fixed for now.

@Miho3Mika
Copy link

Miho3Mika commented Jun 10, 2021

hcapcha it's just blank
i can't click on it
everything is ok but i cant login becouse of this
image

@SpacingBat3
Copy link
Owner

hcapcha it's just blank
i can't click on it
everything is ok but i cant login becouse of this
image

Could you check for CSP errors in DevTools Console? Enable developer mode for that reason (Inspect in right-click context menu) and check console for errors due to Content Security Policy...

I'm reopening an issue until I check if hCaptcha CSP rules includes everything that needs to be loaded...

@SpacingBat3 SpacingBat3 reopened this Jun 10, 2021
@SpacingBat3 SpacingBat3 removed the status:confirmed Issues that could be reproduced label Jun 10, 2021
@Miho3Mika
Copy link

have many mesages saying: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
and one error saying: Failed to load resource: the server responded with a status api/v9/auth/login:1 of 400 ()

@SpacingBat3
Copy link
Owner

have many mesages saying: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
and one error saying: Failed to load resource: the server responded with a status api/v9/auth/login:1 of 400 ()

If that error would be the cause of hCaptcha bug, it is not an issue with the CSP configuration – it would be rather an HTTP protocol error, meaning either you or hCaptcha connection cannot be established. The CSP errors looks different, if there's no such there, maybe hCaptcha is currently down a while?

I'll try to test that now...

@Miho3Mika
Copy link

I don't think hCapcha is down
The capcha interface shows for like half a second trying to load images and then turn white

@SpacingBat3
Copy link
Owner

@Miho3Mika I just wanted to say these errors doesn't help me to solve this issue and they don't say nothing about the CSP issues...

If it really is a problem with CSP, the error would be like: Failed to load/connect to XYZ because it violates the Content Security Policy..., where XYZ is an URL to element I need to include in CSP...

I'll just need to test it later myself...

@SpacingBat3
Copy link
Owner

@Miho3Mika it seems that Discord website didn't return all CSP information, img-src should also contain hCaptcha websites as well so I added them by myself...
This should now be fixed with the master builds...

@SpacingBat3 SpacingBat3 added status:confirmed Issues that could be reproduced and removed status:confirmed Issues that could be reproduced labels Jun 11, 2021
This was referenced Jun 12, 2021
@SpacingBat3 SpacingBat3 added the status:patch-released Patched in current stable release label Aug 6, 2021
@SpacingBat3 SpacingBat3 removed their assignment Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:patch-released Patched in current stable release type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants