-
Notifications
You must be signed in to change notification settings - Fork 33
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
Bad request trying to log from vault web #29
Comments
What do you have running on :4001? Have you tried adding an access-control-allow-origin header in nginx? https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin ? |
Thanks for the help @ptman. I have running on port 4001 (on my laptop localhost) the vault web. I tried adding this line to
And then I restarted nginx, but I still get the same error on my chrome developer terminal. I also had a look on the bitwarden-go trace, and it says So, to remove complications, I tried to serve vault web from my server instead of from my laptop (the same server where is bitwarden-go). I rerun bitwarden-go with the new value for
And I don't have any message on bitwarden-go trace. I think I must try to enable POST http methods in some way in nginx. I tried with |
Hi everyone,
First thanks for your job with the API, I think you are doing a good job here.
I'm trying to enable 2FA on my account, and I think the only way to achieve it is via vault web (correct me if I'm wrong*), so I'm trying to log to the bitwarden-go API from the web.
I know bitwarden-go API is well configured because I can connect from my Android APP and browser extension.
So, I'm running the vault web on a laptop with a public IP. I tried running it from sources of bitwarden web GitHub repo and also from @shackra Dockerfile as he told in #12. This is my settings.json
And I'm running bitwarden-go with
./bitwarden-go -disableRegistration -host 127.0.0.1 -port 9001 -vaultURL my-laptop-public-ip:4001
I'm running bitwarden-go API behind and nginx proxy as follow:
And when I open the vault web on my laptop and try to log in I get an error message which says "Errors have occurred: An unexpected error has occurred.". I press F12 to see console output and it says:
If you can help me I'll apreciate it a lot.
* I can try to do a petition to bitwarden-go API with postman or similar to set 2FA. I really only want the web to enable 2FA and I'll forget the web after that.
The text was updated successfully, but these errors were encountered: