Print this page

"A request validation has occurred" error on Marketing Cloud landing page

Knowledge Article Number 000214099
Description
After clicking Submit on a landing page that contains a Web form, the following error appears: 

 
"A request validation error has occurred!

A potentially dangerous Request.Form value was detected from the client.

The request Validation has detected a potentially dangerous client input value and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. It is strongly recommended that your application explicitly check all inputs."
Resolution


Web forms that allow full text responses to be submitted run the risk of scripting attacks. These Web forms potentially allow attackers to inject script into Web pages viewed by other users. There are measures to prevent this risk for both Marketing Cloud landing pages and for your own landing page, which are as follows: 
 

  • Marketing Cloud Landing Pages are designed with checks in place that will not allow HTML tags to be submitted.
  • If you host the Web form on your landing page, you can disable the request validation by setting "validationRequest=false." 

By hosting the Web form on your landing page you'll have the ability to update your web.config file. If you host the Web form on a Marketing Cloud landing page, you'll not have the ability to update your web.config.file and therefore can not disable the request validation.




promote demote