how i can protect the project secret from frontend? is there any way?
Thanks for reaching out to the Infura community and welcome! When developing the frontend I suggest using the dotenv package that hides your secrets in a .env file so that you can work out of a github repo without exposing your api keys. In real time production dotenv will not hide your keys. Read more about dotenv here: Keeping your API keys secret with dotenv | by sonia dumitru | Medium
Alex | Infura Support | Consensys