the cloudfrount links are due to the asset optimization.
you can learn a little bit more about that here:
we strongly recommend you use only relative URLs if you are using asset optimization. If you need to use absolute URLs, you should switch off asset optimization, which you can do through the UI in your settings.