I made an api that loads data and fetches the value from the mysql server made with node.js and stores the value. And I want to call this api from JavaScript, and I know that there are fetch and to call api from JavaScript but Internet addresses(example: https://Hahaapi.com) are needed. But I don't have an address because I made my own api.(ofc. I have api in project folder.) Is there a way to call the api without using the address(Example: https://javascriptapi.com) so that the web page viewer cannot see the code of api(webpage viewrs can see js and css and etc right?) (there is important information such as mysql's password)? If there's no way, I'd appreciate it if you could tell me in detail what to do.
If you don't understand what I'm saying, please comment. I'll explain.
Aucun commentaire:
Enregistrer un commentaire