keepass-macpass-helper icon indicating copy to clipboard operation
keepass-macpass-helper copied to clipboard

Cannot Connect To KeePass After Reinstall

Open vivienney opened this issue 7 years ago • 6 comments

I have used KeePassHelper with Chrome for a year and it has worked. However, I switched from Chrome Web Store version to packaging the extention myself. Since then I cannot get KeePassHelper to connect to KeyPass via KeePassHttp. I can confirm that I have entered the correct settings for KeePassHttp such as port. I have created new Chrome profile and I was able to connect to KeePassHttp but I cannot connect using the old profile. I am not sure what is going on. I get no error that explains what is the issue instead the orange wheel just keeps rotating.

Any help or advice would be appreciated.

vivienney avatar Sep 15 '18 05:09 vivienney

Open your KeePass application and delete the sharing token. If it doesn't work, try:

Go to chrome://extensions and open the background page for this extension, then go to the network tab. When the extension tries to connect to the native side, it sends multiple HTTP requests to the KeePassHttp plug-in. You can see the responses. See if you see any error message in the responses.

belaviyo avatar Sep 18 '18 06:09 belaviyo

It turns out the issue was related to iframes. Once I disabled the iframes option, I was able to connect to KeePassHttp. With iframes enabled. I receive the following error:

Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

In order to fix this security exception, I needed to disable the Block third-party cookies option. However, due to this security exception, I couldn't connect to KeePassHttp and ended up with a rotating orange wheel:

screenshot

Quick question: Is there a way to centre the panel horizontally without having the iframes option enabled? I prefer to block third-party cookies but still would like to have the panel centered.

vivienney avatar Sep 20 '18 10:09 vivienney

I needed to disable the Block third-party cookies option

In Google Chrome if I enable this option, still the popup works. Are you sure this is the preference that causing the issue? It looks like you have somehow disabled the local storage access in the extension context.

belaviyo avatar Sep 20 '18 10:09 belaviyo

In the past, I was able to use both iframes and the Block third-party cookies option at the same time but for some odd reasons it stopped working. Now when I enable both iframes and the Block third-party cookies option, I receive the local storage access error. The screenshot for which I posted above. The popup simply shows an endless loop of rotating orange wheel. I'm using ungoogled chromium 67.0.3396.87.

vivienney avatar Sep 22 '18 15:09 vivienney

Since I am not able to reproduce, I've pushed a possible fix for this. Please wait for the next release and let me know if the issue is solved or not

belaviyo avatar Oct 31 '18 08:10 belaviyo

I recommend closing this issue, it's gone dormant.

gamedevsam avatar Aug 30 '20 03:08 gamedevsam