user156888
user156888

Reputation:

Servicestack A potentially dangerous Request.Form

I'm trying to post HTML content to a ServiceStack endpoint but keep getting the "A potentially dangerous Request.Form" error.

How do you stop this in servicestack - non of the standard tweaks seem to work

Upvotes: 1

Views: 122

Answers (1)

mythz
mythz

Reputation: 143359

This is an ASP.NET Request Validation exception that is thrown before it reaches ServiceStack (or before executing any ASP.NET Handler).

You can revert to relaxed validation mode by specifying it in your Web.Config:

<httpRuntime requestValidationMode="2.0" />

Upvotes: 1

Related Questions