mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[GH-ISSUE #3066] Access to fetch at 'https://2fa.directory/api/v3/totp.json' has been blocked by CORS policy #1463
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#1463
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ob-tk on GitHub (Dec 29, 2022).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/3066
Subject of the issue
After update to 1.27.0 [Latest] the ability to check for enabled 2FA is broken.
In the Chrome browser console, the following information:
"Access to fetch at 'https://2fa.directory/api/v3/totp.json' from origin 'https://my.doma.in' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."
In the Web Vault always "good news".
Deployment environment
Install method: Docker image (vaultwarden/server:latest)
Clients used: web wault (Chrome/Firefox/Opera browsers)
Reverse proxy and version: nginx/1.23.2
MySQL/MariaDB or PostgreSQL version: sqlite3
Other relevant details:
Steps to reproduce
Expected behaviour
Actual behaviour
Troubleshooting data
@BlackDex commented on GitHub (Dec 29, 2022):
Looks like 2fa.directory made some changes, and this also breaks on Bitwarden Self-Hosted environments.
That said, it's not something we can fix in this repo.
@ob-tk commented on GitHub (Dec 29, 2022):
Exactly.
Changed url from https://2fa.directory/api/v3/totp.json to https://api.2fa.directory/v3/totp.json
Waiting for changes from Bitwarden.
@BlackDex commented on GitHub (Dec 29, 2022):
I have created my first PR for Bitwarden:
Lets wait and see :).
@BlackDex commented on GitHub (Dec 29, 2022):
Ill leave it open for now until they have fixed it and we have updated the web-vault version to a fixed version.
In theory we could fix this our self via patches, but i rather wait for Bitwarden to release a new vault version.