AllowJsonP

By placing this attribute on DirectController's class or method you allows JSONP requests. Optionally, you can specify a request parameter with callback's function name. By default, the name is callback.

Code Sample:

[AllowJsonP] // callback's parameter name is "callback"
public ActionResult JsonPMethod()
[AllowJsonP("callbackFunction")]
public ActionResult JsonPMethod()

Links

Last edited Apr 27, 2012 at 3:05 PM by ShaiHulud, version 2

Comments

No comments yet.