Since this morning, the Stacks Web Wallet Extension shows me the following:
When I go to the wallet straight in a tab (e.g. chrome-extension://gogakmahkgmhmmbhncacdhhbijmhcdod/full-page.html#/), it works and connects to my localnet. I tried reinstalling the extension, but to no avail.
When I go look in the error log, I see the following (not sure if this is the actual error tho!)
Loadable: api.account-data
Message: Unable to fetch account data from http://localhost:3999
Version: 2.0.7
Branch: main
Commit: 485eea0
It appears to be attempting (and failing) to connect to a localhost instead of mainnet or testnet. Is that intentional or do you want to switch to another network with the menu in the top-right corner?
It appears to be attempting (and failing) to connect to a localhost instead of mainnet or testnet. Is that intentional or do you want to switch to another network with the menu in the top-right corner?
I believe this is intentional, from this:
it works and connects to my localnet
We should test and confirm if connecting to a localnet works.
@markmhx yes - to clarify: I am trying to connect to my localhost (i.e. my local mocknet). It does not work in the popup (when you click the icon in the top right), but it works when I open a tab manually and paste the URL (which is chrome-extension://gogakmahkgmhmmbhncacdhhbijmhcdod/full-page.html#/ for me).
Not sure if this is a problem on my end, or a bug in the last release (2.0.7). Never had this before with previous releases.
and connecting to mainnet & testnet works fine fyi
@markmhx @aulneau to illustrate with a gif:
I bet it has to do with some permissions we changed for the CSP, I can play around and do some testing. I wonder what @kyranjamie and @hstove think
To test, remove CSP for development. Would recommend separate html for development/prod if rules need to be loosened in dev.
Hi Team, same issue here - @kyranjamie would you be able to explain how to remove CSP for development?
Note. I'm using http://localhost:20443
and running the Stacks Blockchain locally and without docker.