Home > Backend Development > PHP Tutorial > node js-php应用80端口,使用node.js通过8888端口实现即时推送,怎么解决跨域问题?

node js-php应用80端口,使用node.js通过8888端口实现即时推送,怎么解决跨域问题?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 11:34:46
Original
1286 people have browsed it

node jsphp跨域socket iosocket

项目背景是一个php应用。
为了加入即时推送功能,使用node.js写了8888端口用于推送即时消息,并使用socket.io进行数据传输。

如何解决80端口应用页面跨域与8888端口建立socket连接问题?

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template