简体   繁体   English

客户端和服务器在不同域上的安全连接

[英]Secure connection between client and server on different domains

I am doing a module in which i need to handover the pre designed page to a client and when client uses this page it can communicate between my server and client page. 我正在做一个模块,在该模块中,我需要将预先设计的页面移交给客户端,并且当客户端使用此页面时,它可以在服务器和客户端页面之间进行通信。 The problem is if I want to access server from other client page I need to give username,pass,host which must be written in the pre designed client page. 问题是如果我想从其他客户端页面访问服务器,我需要提供必须在预先设计的客户端页面中编写的用户名,密码,主机。 How can I make it hide from the client to get the info and securely operate the task. 如何使它对客户端隐藏以获取信息并安全地执行任务。 Is there any approach or Am I wrong somewhere. 有什么办法还是我在某个地方错了? I am doing this in php and javascript Thanks in advance 我正在用php和javascript执行此操作

You can use curl or file_get_contents method to share the file content. 您可以使用curl或file_get_contents方法共享文件内容。 In this way you wont need to provide ftp details. 这样,您将不需要提供ftp详细信息。 But need to implement a SOAP or REST Server type of architecture. 但是需要实现SOAP或REST Server类型的体系结构。

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

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