Getting warning about sensitive information that could be disclosed to 3rd parties - Asp.net MVC 2.0
- by chobo2
Hi
I never gotten this message before I started to use asp.net mvc 2.0 and jquery 1.4.
<title>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.</title>
<span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>
<h2> <i>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.</i> </h2></span>
<font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
<b> Description: </b>An unhandled exception occurred during the execution of the current web request.
Please review the stack trace for more information about the error and where it originated in the code.
<br><br>
<b> Exception Details: </b>System.InvalidOperationException: 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.<br><br>
So it makes me wondering what sensitive data could be disclosed and if so how to get around this? What I was trying to send back was a rendered string of a partial view(http://www.klopfenstein.net/lorenz.aspx/render-partial-view-to-string-in-asp-net-mvc) and a success msg.