Can a CDN be used as an alternative to reverse proxy for subfolder relocation?

Hi,

At the moment our Shopify website is available under a top level domain like my-ecommerce.com.

We would like to move it to a subfolder of a different top level domain so that it is available under my-website.com/ecommerce. Another CMS is installed on the root of this top level domain, that’s why we need to move Shopify to a subfolder.

To achieve that, a reverse proxy would be perfect. However, for some reason, Shopify doesn’t support it (as I read here and here).

Is it possible to successfully do that via a CDN? We’re using CloudFront on the destination domain. I noticed that it would be possible to setup something similar on CloudFlare. Do you think forwarding the traffic via a CDN will produce the same unexpected result (CDN IPs being banned)? Or is it safe?

I’m also open to suggestions, if you have any other alternative in mind.

Thank you!

Any suggestions?

Anyone?