ASP.Net Error: A potentially dangerous Request.Form value was detected from the client

Isu security adalah salah satu hal yang harus diperhatikan oleh developer web application. Salah satunya adalah script injection. Di ASP.NET secara default telah menambahkan validasi untuk mencegah script injection.

Contoh error yang muncul adalah "A potentially dangerous Request.Form value was detected from the client" seperti pada gambar dibawah ini :


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


Untuk beberapa kasus kita mungkin perlu melepaskan validasi tersebut.

Maka yang perlu kita lakukan adalah :

  • Menambahkan properties validate request bernilai false pada page directive


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

  • Tambahkan juga properties validate request pada tag httpruntime di web.config


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



Semoga posting tentang "A potentially dangerous Request.Form value was detected from the client" diatas dapat bermanfaat.




Salam,


Popular posts from this blog

SmartObject property ID is a required property for selected method Create. Value must be set.

Cara inject USB 3.0 Driver pada instalasi Windows - How to Inject USB 3.0 Driver in Windows 7

Python Font Color in Console