Click or drag to resize
CMSDeskPageRegisterCookiePolicyDetection Method
Registers client scripts that display a message in case when the browser prevents iframe pages from setting cookies. The message informs user that the previewed page may not work properly as e.g. form submission requires CSRF token saved in cookie.

Namespace: CMS.UIControls
Assembly: CMS.UIControls (in CMS.UIControls.dll) Version: 13.0.131
Syntax
C#
protected void RegisterCookiePolicyDetection(
	bool forceWarningMessage = false
)

Parameters

forceWarningMessage (Optional)
Type: SystemBoolean
Display the warning message even if the MVC/Core site is configured to not require cookies. For example when the virtual context authentication cookie is not required for localhost.
See Also