Below is my JavaScript code for creating Game of Thrones graph visualization using neovis.js and neo4j instance.
Here in the index.html code, Neo4j credentials are exposed on client browser.
What can be the approach to protect these credentials in our webpage?
index.html
Neovis.js Simple Example html, body { font: 16pt arial; } #viz {
width: 900px;
height: 700px;
border: 1px solid lightgray;
font: 22pt arial;
}
</style>
<script src="https://unpkg.com/neovis.js@2.0.2"></script>
Attached npm package link for reference.