Potentially Dangerous Request

I am new to asp.net. I use "tinymce", there I use html tables. When the button is pressed, an error occurs:

A potentially dangerous Request.Form value was detected from the client 
(txtspecification="<table border="1" ce...").

Can someone help me in solving this? Thanks in advance.

+3
source share
1 answer

Your problem will be that you are sending back to the ASP.NET page where request validation is enabled. Essentially, the tinymce HTML will contain angle brackets and that (among other things) will disable ASP.NET security checking features (which tries to catch cross-site scripting attacks). You can disable request validation on an ASP.NET page.

Disabling query verification on a page using the page directive:

<%@ Page validateRequest="false" %> 
+4

Source: https://habr.com/ru/post/1752071/


All Articles