title: Does Kentico Auto-Prefix CDN Endpoint URLs to Media File Paths?
body: <p>Is anyone here familiar with using Azure or Amazon CDN services with Kentico media libraries? I have a client running Kentico v10.0.21 with Amazon CloudFront CDN in the web.config. <a href="https://docs.kentico.com/k10/custom-development/working-with-physical-files-using-the-api/configuring-file-system-providers/configuring-amazon-s3#ConfiguringAmazonS3-ConfiguringKenticotouseAmazonCloudFrontCDN" rel="nofollow noreferrer">https://docs.kentico.com/k10/custom-development/working-with-physical-files-using-the-api/configuring-file-system-providers/configuring-amazon-s3#ConfiguringAmazonS3-ConfiguringKenticotouseAmazonCloudFrontCDN</a></p>
  
  <p>They're running into an issue where Kentico doesn't prefix the CDN Endpoint URL to media file paths. Is there any native Kentico functionality for auto-prefixing the CDN path to Media Library selections if the web.config was set up to use a CDN? I could use a custom macro to read the value from the web.config and do something with that, but it seems strange that this wouldn't be a native feature of Kentico if it already enables using CDN endpoints.</p>