Kentico Xperience 13 documentation and ASP.NET Core

Most documentation about running Xperience applications under ASP.NET Core can be found in a dedicated section: Developing Xperience applications using ASP.NET Core. The rest of the documentation still applies, but some code samples and scenarios might need slight modifications for Core projects.

Certain pages allow you to switch between Core and MVC 5 content using a selector located under the page heading.

All major differences between the MVC 5 and Core platforms are summarized in Migrating to ASP.NET Core.


Running Xperience behind a proxy server

If you wish to host Xperience behind a proxy server or some other service that masks the application's original domain (e.g., Azure Application Gateway), you need to ensure request URLs from all parts of the application are generated correctly (targeting the proxy domain). Otherwise, you may encounter issues with Cross-Origin Resource Sharing (CORS) policies when performing certain actions (such as uploading images to Media libraries).

Configuring Xperience running behind a proxy server

To correctly configure Xperience running behind a proxy service, you need to:

  1. Set the CMSUrlHost configuration key for the live site application
  2. Configure the MVC site's Presentation URL property

Setting the CMSUrlHost configuration key

On the live site, set the CMSUrlHost configuration key to the host component of the proxy server's URL (omitting the port number).

  1. Edit your live site project's web.config file.
  2. Add the CMSUrlHost key into the <appSettings> section of the file. Set the key's value to the host component of the proxy server's URL (omitting the port number).

    • For example, assuming the site is running behind the proxy server, set the key to
    <add key="CMSUrlHost" value="" />
  3. Save the file.

Setting the MVC site's Presentation URL property

Configure the Presentation URL property (via the Sites application) of the front-end MVC site to target the proxy server's domain:

  1. Open the Xperience administration interface in your browser.
  2. Navigate to the Sites application and edit the MVC site.
  3. Set the Presentation URL property to the full domain name of the proxy server.
    • For example, assuming the site is running behind the proxy server, set Presentation URL to
  4. Save the changes.

The system is now configured to generate URLs targetting the specified proxy server.

Was this page helpful?