Click or drag to resize
ApplicationBuilderExtensionsUseResourceSharingWithAdministration Method

Note: This API is now obsolete.

When request is sent from administration domain of the site, adds header Access-Control-Allow-Origin into response to enable cross origin resource sharing (CORS) with the administration.

Namespace: Kentico.Web.Mvc
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Cross origin resource sharing (CORS) with the administration is registered automatically. This method does not need to be called explicitly any more.")]
public static void UseResourceSharingWithAdministration(
	this IApplicationBuilder builder
)

Parameters

builder
Type: Kentico.Web.MvcIApplicationBuilder
The application builder.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IApplicationBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also