I'm getting this error whenever I execute a json request "This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior
to AllowGet."
The odd thing is another developer on a different dev machine runs the same project without any problem. A possible solution I found online is to set the request to "Post" but in doing so, we would change a lot of code in our project and
besides, the same exact project runs flawlessly in another machine or when we deploy it to our staging server so there is definitely something different in my dev machine.
Here's our setup:
1. Visual Studio 2008
2. We are using MVC 2 Preview
3. We are using the jqGrid which executes the json request.
4. My VS 2008 built in webserver is using the same port as the other developers VS installation.
Any help would be gladly appreciated.
Thanks!
JsonRequestBehavior blocked because sensitive information could be disclosed
crawler486
Member
46 Points
24 Posts
JSON Problem - JsonRequestBehavior to AllowGet.
Oct 20, 2009 04:25 PM|LINK
Hello Guys,
I'm getting this error whenever I execute a json request "This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set JsonRequestBehavior to AllowGet."
The odd thing is another developer on a different dev machine runs the same project without any problem. A possible solution I found online is to set the request to "Post" but in doing so, we would change a lot of code in our project and besides, the same exact project runs flawlessly in another machine or when we deploy it to our staging server so there is definitely something different in my dev machine.
Here's our setup:
1. Visual Studio 2008
2. We are using MVC 2 Preview
3. We are using the jqGrid which executes the json request.
4. My VS 2008 built in webserver is using the same port as the other developers VS installation.
Any help would be gladly appreciated.
Thanks!
JsonRequestBehavior blocked because sensitive information could be disclosed