Although the entire site has CDN enabled, Nginx still leaks the origin IP after enabling SSL, how to solve it?

Firewall the server ip so it doesn’t matter?