Psychedelic / plug

Plug is a browser extension for users of the Internet Computer that allows you to access your ICP, Cycles, and other tokens as well as log into IC apps with one click.
GNU General Public License v3.0
166 stars 40 forks source link

Error: This app tried to connect to a canister on your behalf without the proper permissions #575

Closed honopu closed 2 years ago

honopu commented 2 years ago
1. window.ic.plug.requestConnect();
2. window.ic.plug.createAgent({ whitelist: ["rd6wb-lyaaa-aaaaj-acvla-cai"],  host: "https://ic0.app" })
3. window.ic.plug.createActor({ canisterId: xxxx,  interfaceFactory: xxx });

Then call transfer method and throw error: This app tried to connect to a canister (rd6wb-lyaaa-aaaaj-acvla-cai) on your behalf without the proper permissions. Please contact this project’s developers and share the error with them so they can fix it. So the whitelist passed by createAgent is not working right now?

image

image
Werwolf888 commented 2 years ago

I have exactly the same problem since yesterday. If you know how to solve this problem please let me know!

honopu commented 2 years ago

I have exactly the same problem since yesterday. If you know how to solve this problem please let me know!

You can use window.ic.plug.requestConnect({ whitelist: ["all your canister ids"] })

riveign commented 2 years ago

Hi! This was fixed in the release 0.5.4.1 https://github.com/Psychedelic/plug/releases/tag/V0.5.4.1 closing the issue :D