CDN cache conflict with the websocket

What is the name of the domain?

What is the issue you’re encountering

I would like to turn on the DNS proxy to enable CDN. However, if the proxy is on, my domain IP is situated in the United States and my websocket of my php swoole customer service chat app disconnected. How can I set the rules to add the CDN ip to my Alicloud ECS public IP address?