mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
Access to fetch at 'https://2fa.directory/api/v3/totp.json' has been blocked by CORS policy #1457
Reference in New Issue
Block a user
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).
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.