@ajinkyaraj-23 Thanks for sorting the CORS headers,Access-Control-Allow-Origin: * is showing on the preflight and the responses now, so browser dapps are unblocked. Appreciated.
The bigger problem is still there, though: the nodes aren’t usable as a public RPC because the RPC interface is wide shut. They’re serving Octez’s default remote ACL, the whitelist you get when you bind --rpc-addr to a public interface and leave it at that. Anything outside that whitelist comes back 401 Unauthorized, and that covers a lot of what wallets and libraries actually call.
To be clear, that default is the right policy for a baker’s own node, it’s there to keep strangers off the expensive and dangerous surface. Which is kind of the point: these were announced as public RPC nodes for dapps, wallets and tools, but they’re configured like private baker nodes. The ACL never got adapted to the thing you’re advertising.
Concretely, against tezos-shadownet.octez.io today, and tezos-mainnet.octez.io is identical, same policy, so neither was looked at:
Blocked (401), all of it needed by dapps/wallets:
POST …/context/contracts/<addr>/ticket_balance
POST …/context/contracts/<addr>/script/normalized
GET …/context/delegates
GET …/context/destination/<addr>/index
GET /chains/main/protocols (and /protocols/<hash>)
GET …/helpers/baking_rights
GET …/helpers/attestation_rights
GET …/context/raw/bytes/**
The write/simulate path is fine, run_operation, simulate_operation, forge, preapply and injection/operation all work, as do the common reads, so estimation and injection are OK. It’s the query, metadata and normalization endpoints that are walled off. (The POSTs are the tell: the default whitelist only allows big_map_get, injection/operation and context/seed, so every other POST query 401s.)
The fix is on your side — it’s your ACL to scope — but the short version is the public listener needs a policy built for serving dapps, not the stock baker default. I’d steer clear of --allow-all-rpc though; you don’t want injection/block and the admin surface open to the world.
For reference, ~25 of Taquito’s integration tests fail against these nodes right now purely on the ACL.