Skip to main content

DevExpress v25.1 Update — Your Feedback Matters

Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WebDocumentViewerBuilder.AllowUrlWithJsContent(Boolean) Method

SECURITY NOTE

Setting this property to true may introduce security-related issues because report scripts are not secure. Review the following topic to learn how to protect websites from cross-site scripting (XSS) attacks: Scripts Security.

Sets whether the execution of the JavaScript code placed in URLs is allowed.

Namespace: DevExpress.AspNetCore.Reporting.WebDocumentViewer

Assembly: DevExpress.AspNetCore.Reporting.v25.1.dll

NuGet Package: DevExpress.AspNetCore.Reporting

#Declaration

public WebDocumentViewerBuilder AllowUrlWithJsContent(
    bool allowUrlWithJsContent
)

#Parameters

Name Type Description
allowUrlWithJsContent Boolean

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

#Returns

Type Description
WebDocumentViewerBuilder

A WebDocumentViewerBuilder that can be used to further configure the Document Viewer.

#Remarks

By default, AllowUrlWithJsContent is set to false.

See Also