Skip to content

Commit b4b3f44

Browse files
authored
Merge pull request #2389 from MicrosoftDocs/Portals-task1542273-scripting
Portals task 1542273 scripting
2 parents 864c348 + 2098e67 commit b4b3f44

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

powerapps-docs/maker/portals/configure/entity-forms.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ manager: kvivek
66
ms.service: powerapps
77
ms.topic: conceptual
88
ms.custom:
9-
ms.date: 11/22/2019
9+
ms.date: 02/04/2020
1010
ms.author: tapanm
1111
ms.reviewer:
1212
---
@@ -184,6 +184,33 @@ The form's map control requires additional configuration to tell it what the IDs
184184
> - The address field in a read-only entity form is replaced with the map when geolocation is enabled.
185185
> - The Geolocation section is not visible in the German Sovereign Cloud environment. If a user has enabled geolocation by using a different form, it will not be displayed during rendering on portal.
186186
187+
## Request validation
188+
189+
[Request validation](https://docs.microsoft.com/aspnet/whitepapers/request-validation), a feature of ASP.NET since version 1.1, prevents the server from accepting content containing un-encoded HTML. This feature is designed to help prevent some script-injection attacks whereby client script code or HTML can be unknowingly submitted to a server, stored, and then presented to other users. We still strongly recommend that you validate all input data and HTML encode it when appropriate.
190+
191+
By default, request validation is enabled on portal resulting in following generic error if you enter script code without HTML encoding inside entity form fields:
192+
193+
![Request validation error](../media/request-validation-error.png)
194+
195+
To disable request validation, follow these steps:
196+
197+
1. Go to [portal settings](https://docs.microsoft.com/powerapps/maker/portals/manage-existing-portals#settings) and select **Site Settings**.
198+
199+
1. Select **New**.
200+
201+
1. Type the name as **DisableValidationWebTemplate**.
202+
203+
1. Select appropriate web site record.
204+
205+
1. Type the value as **true**. By default, setting is **false** that enables request validation.
206+
207+
1. Type appropriate description.
208+
209+
1. Select **Save & Close**.
210+
211+
> [!CAUTION]
212+
> When request validation is disabled, content can be submitted to a page. You must ensure that content is properly encoded or processed.
213+
187214
### See also
188215

189216
[Configure a portal](configure-portal.md)
11.8 KB
Loading

0 commit comments

Comments
 (0)