We have app.js running on server and index.html on the server where app.js is located. app.js code is as below.
var express = require('express');
var engine = require('consolidate');
var app = express();
app.set('views', __dirname);
app.engine('html', engine.mustache);
app.set('view engine', 'html');
app.use(express.static('.'));
app.get('/', function(req, res) {
console.log("Got request for index.html");
res.render('index.html');
});
app.listen(5000, '0.0.0.0');
From our mobile app (java code), we are hitting the server with GET request and we are sending encrypted user data as one of the headers for that GET request. Once our app.js receives the request, it will serve index.html file. Is there any way we can read the encrypted data in index.html by using javascript. I have gone through some stack overflow questions as below but not able to find the solution.