3👍
As you can see all the details from the RFQsListApi.js file, such as username and password are visible and anyone can access these files by viewing the source.
Among other methods, such as just watching the files go over the network, or using a debugging console, or a browser extension, etc. etc.
What can I do to protect or hide these username and other sensitive details from others.
You can’t. If you send someone some information, they have that information. If someone needs to use that information (such as a password) then they necessarily need to access that information, and there’s nothing you can do to prevent it from being out there.
You need to do something differently, where the username/password isn’t sent to everyone. Usually, each user’s session will be given a temporary token representing that user, and the server will do actions on a database on their behalf, authenticating/verifying as you go.
- [Vuejs]-Calling "this" within Vue is returning Window
- [Vuejs]-How to check if a value is not equal to another value in the array using javascript