I have a vanilla js project. In app.js file I am calling a api that retrieves the desired values. I have initially called the api through postman, included all the headers in postman only and retrieved the code using javascript fetch. It works good too but it shows my token and session id in it.
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "Token <mytoken>");
myHeaders.append("Cookie", "sessionid= <mysessionid>");
myHeaders.append("User-Agent", "Mozilla/5.0");
How can i hide these values in .env file.
Thank you