I have two node scripts connected with PHO site. Domain is under Cloudflare protection.
I using node.js and socekt.io to update content live to all connected users, but when I using CF protection, node script not working well.
Could someone tell me what I should do? My ports: 8880 and 8080.
You need allow CORS from your node script add the following to your node script for socket.io.
io.set('origins', ' http://sampledomain.com:8880 ');
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.