How to fix "This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request." error.

08.04.2020 21:41
#AJAX #JQUERY #ASP.NET #MVC #JSON #HATA

How to fix "This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request." error.

ASP.NET MVC does not allow you to respond to the GET request with a JSON load, since a malicious user has a chance to access the load through a process known as JSON Hijacking.

For this reason, you need to change your answer as follows.


return Json (list, JsonRequestBehavior.AllowGet);