Asp.Net MVC 2 JsonRequestBehavior.AllowGet(ifunky.net)

submitted by iDaniDan(80) 2 years, 2 months ago

If you've been trying out Asp.Net MVC 2 you might come across this error: This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. But it worked in MVC 1.0! There is a security vulnerability using JQuery AJAX GET requests (JSON Hijacking) and in MVC 2 get requests are blocked by default. You can get around the problem and leave the security problem by adding JsonRequestBehavior.AllowGet when you return the JSON result:

add a comment |category: |Views: 84

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story