简体   繁体   English

如何隐藏来自客户端 react js 网站的请求

[英]How to hide requests from a client react js website

I have a C# server side web service.我有一个C#服务器端 Web 服务。 but I don't want user can to see my requests like request tab from client's browsers.但我不希望用户可以看到我的请求,例如来自客户端浏览器的请求选项卡。

now, I haven't been find any solution on SO.现在,我还没有在 SO 上找到任何解决方案。 what is the best solution to do this?这样做的最佳解决方案是什么?

I think I can use a node.js server-side and render my reactjs inside it and my node.js send my requests to C# server side.我想我可以使用node.js服务器端并在其中呈现我的reactjs并且我的node.js将我的请求发送到C#服务器端。 like this:像这样:

React.js<--(render)--Node.js--(Send/Receive api's)-->C# 

I don't know if I use a node.js server, my requests will be hidden from clients?我不知道如果我使用node.js服务器,我的请求会对客户端隐藏吗?

I don't want to use reactjs.net .我不想使用reactjs.net

If you're making a HTTP request to node server, and making the stealth request from NodeJS to another server, that request will not be visible to the client.如果您向节点服务器发出 HTTP 请求,并从 NodeJS 向另一台服务器发出隐蔽请求,则客户端将看不到该请求。

Alternatively, you can make an encrypted request.或者,您可以发出加密请求。 Although URL and some part of encryption algorithm will still be exposed at client's end.虽然 URL 和加密算法的某些部分仍然会暴露在客户端。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM