Getting warning about sensitive information that could be disclosed to 3rd parties - Asp.net MVC 2.0
Posted
by chobo2
on Stack Overflow
See other posts from Stack Overflow
or by chobo2
Published on 2010-05-18T20:18:20Z
Indexed on
2010/05/18
20:20 UTC
Read the original article
Hit count: 1203
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.
© Stack Overflow or respective owner