Failure Calling web3.eth.getBlock() with whitelisted origin

Hello,

I want to activate “Whitelist Origins”. But then I cannot call web3.eth.getBlock() anymore.
Error: {“code”:-32002,“message”:“rejected due to project ID settings”}"

Any solution possible?

Thanks.

Check this out

Let me know if it worked

Thanks

Thanks for your fast answer.

I’ve found that thread before. I do not have any whitelisted contract addresses. The only field that I’m using is the “Whitelist Origins” field.

Any other ideas?

can you paste the exact format of your code here, so i can have better understanding?