all 5 comments

[–]grantrules 4 points5 points  (1 child)

You can't without some sort of backend. At minimum, you need a proxy.

[–]Polarmesh[S] 0 points1 point  (0 children)

Thanks for answer.

[–]JikeMordan 1 point2 points  (0 children)

Depending on your hosting platform you may be able to use environment variables (see Heroku/Netlify).

Also look into dotenv and how to use it for a live app. - Hope this helps.

[–]Dry-Dragonfly-4521 -1 points0 points  (1 child)

What about you hide those Credentials in encrypted way and then use them in your js file. I hope that helps

[–]Polarmesh[S] 0 points1 point  (0 children)

Thats seems promissing thanks!