Skip to main content

WebDocumentViewerSettings.AllowURLsWithJSContent Property

OBSOLETE

This property is now obsolete and has no effect. Review the following document for more information: https://go.devexpress.com/UnsafeUri.aspx

Specifies whether or not the execution of the JavaScript code placed in URLs is allowed.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v25.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

[Obsolete("This property is now obsolete and has no effect. Review the following document for more information: https://go.devexpress.com/UnsafeUri.aspx")]
public bool AllowURLsWithJSContent { get; set; }

Property Value

Type Description
Boolean

true, to allow the execution of the JavaScript code placed in URLs; otherwise, false.

Remarks

By default, the execution of the JavaScript code placed in URLs is prohibited, since this behavior creates the possibility of a phishing attack and for executing queries from users viewing reports.

If required, you can allow users to insert the JavaScript code to URLs by enabling the AllowURLsWithJSContent property.

See Also