The REQUEST_ACCOUNT_PK handler (src/hooks/useExportPrivateKeyEmbed.ts)
sent the raw private key to any window that posted the message. It had
no origin check and no user approval. App.tsx mounted it on every route.
This commit deletes the hook and its two message constants.
Three other handlers had no origin check: REQUEST_WALLET_ACCOUNTS and
REQUEST_TX (WalletEmbed.tsx) and CHECK_BALANCE (App.tsx). This commit
adds the REACT_APP_ALLOWED_URLS check that the six other handlers use.
Local test on a dev build with REACT_APP_ALLOWED_URLS set to one origin:
- REQUEST_ACCOUNT_PK from an allowed and a disallowed origin: no reply.
- REQUEST_WALLET_ACCOUNTS from a disallowed origin: no reply.
- REQUEST_WALLET_ACCOUNTS from the allowed origin: reply with the address.
eslint and tsc --noEmit pass.