solana rpc proxy for non-node enviroments running php
whitelist domains or allow all origins
protects your rpc endpoint from public view
just send your rpc requests from your front end to the proxy
let proxy = "https://yourwebsite.com/proxy.php";
let connection = new solanaWeb3.Connection(proxy, "confirmed");
open the proxy file and add your whitelist and rpc details
$whitelist = array("https://yourwebsite.com","https://anotherwebsite.com");
$key = "helius-key-here";
$path = "https://mainnet.helius-rpc.com/?api-key=".$key;