web3_sha3 RPC method unauthorized, looking for alternatives

Can anyone help me with this?
const hash = await ethereum.request({ method: ‘web3_sha3’, params: [message] });console.log(hash);
i get “Unauthorized method: web3_sha3” in the response
This is on a simple html and js webpage, i can access the other methods like eth_requestAccounts and eth_accounts but not this one