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.UIControlsAssembly: CMS.UIControls (in CMS.UIControls.dll) Version: 13.0.131
Syntax 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