Origins security configuration for Hardhat

Hi,

I need to leave the Origins security configuration empty to get my project working when testing interaction with my smart contract from a Js run with hardhat. However, I’d like to have a couple of origins there (I used to, but removed them to make the local hardhat run), so my question is: can I write something in origins that would accept hardhat

1 Like

Hi @ldelatorre

As far as I read from Configuration | Hardhat | Ethereum development environment for professionals by Nomic Foundation I saw that they are accepting the HTTP Headers to be used when making JSON-RPC requests. Yes, you can pass those in your Infura project origins.

3 Likes