I want to send JS script from NodeJS to a client and execute it in such a way that the client does not see the JS script. Can I do it this way?
generate some JS script on NodeJS server
send JS script to client
execute JS script on client-side
But with a little detail the client cannot see the JS script.
Probably you can use eval(response.data) to run your response from the nodejs server. Even if client cannot see the script in the contents .. it will be on the network calls tab.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.