U2F 404 error on registration #2578

Closed
opened 2025-11-02 04:41:01 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @rugk on GitHub (Nov 26, 2018).

  • Gitea version (or commit ref): 1.6.0
  • Git version: irrelevant
  • Operating system: Debian
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Get a 404 on …/user/settings/security/u2f/register as I can see when I try to verify the security key.

It is likely some redirect issue or nginx proxy forwarding issue or so…
...

STR:

  1. Register new key.
  2. Enter name.
  3. Click add button.
  4. Popup comes up, verify hardware key by press. (that works)

What happens:
still loading

What should happen:
continue to add key

Screenshots

It does not end loading:

404

Originally created by @rugk on GitHub (Nov 26, 2018). - Gitea version (or commit ref): 1.6.0 - Git version: irrelevant - Operating system: Debian - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [x] No - [ ] Not relevant - Log gist: ## Description Get a 404 on `…/user/settings/security/u2f/register` as I can see when I try to verify the security key. It is likely some redirect issue or nginx proxy forwarding issue or so… ... STR: 1. Register new key. 2. Enter name. 3. Click add button. 4. Popup comes up, verify hardware key by press. (that works) What happens: still loading What should happen: continue to add key ## Screenshots It does not end loading: <!-- **If this issue involves the Web Interface, please include a screenshot** --> ![404](https://user-images.githubusercontent.com/11966684/49047181-e4e04b00-f1d6-11e8-8a2d-83df618bef08.png)
GiteaMirror added the issue/confirmedtype/questionissue/needs-feedback labels 2025-11-02 04:41:01 -06:00
Author
Owner

@mteyssier commented on GitHub (Nov 29, 2018):

I got the same error due to a misconfigured ROOT_URL.
Hope this helps.

@mteyssier commented on GitHub (Nov 29, 2018): I got the same error due to a misconfigured ROOT_URL. Hope this helps.
Author
Owner

@lafriks commented on GitHub (Nov 29, 2018):

Can you verify you have correct root url requested?

@lafriks commented on GitHub (Nov 29, 2018): Can you verify you have correct root url requested?
Author
Owner

@rugk commented on GitHub (Dec 1, 2018):

ROOT_URL      = https://sub.domain.example/subdirectory

Yes, it's correctly set. Also, I'd guess otherwise much more things may break…

@rugk commented on GitHub (Dec 1, 2018): ``` ROOT_URL = https://sub.domain.example/subdirectory ``` Yes, it's correctly set. Also, I'd guess otherwise much more things may break…
Author
Owner

@stale[bot] commented on GitHub (Jan 30, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 30, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@rugk commented on GitHub (Jan 30, 2019):

Still happens. It does two requests (one from website and one from service worker) that end up in 404 errors, after you already pressed the button on your u2f device.

@rugk commented on GitHub (Jan 30, 2019): Still happens. It does two requests (one from website and one from service worker) that end up in 404 errors, after you already pressed the button on your u2f device.
Author
Owner

@zeripath commented on GitHub (Jun 21, 2021):

I'm closing this issue as it has received no updates since 2019. Please reopen if there are further issues.

@zeripath commented on GitHub (Jun 21, 2021): I'm closing this issue as it has received no updates since 2019. Please reopen if there are further issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2578