Socket.io 403 forbidden - Cloudflare worker

Hi,

I try to reverse proxy NodeBB forum from a Wordpress site. Both sites are hosted on different servers.

Site 1: Wordpress (domain.com - WP Engine)
Site 2: NodeBB (forum.domain.com - Google Cloud)

DNS Setting for NodeBB forum is done via A record and it’s pointing to the IP Address of the Google Cloud VM Engine, and it’s grey-clouded.

I use Cloudflare worker to traffic domain.com/forum to forum.domain.com. So far, everything looks good, I can see the forum. All the assets are loaded properly. However, apparently there’s an error with socket.io (403 forbidden).

Any ideas and suggestions?

TIA