bunny CDN no access to admin error 502

I have implemented bunnyCDN. Everything is working fine.
However when I try to access any page that requires login, like the admin pages, it does not show them. I get error 502.
All non-logged in stuff works fine.

Please let me know if I have to make any exceptions to make it work.
Or if I have to whitelist cdn ip or something else.