Skip to content

Commit

Permalink
Removed POST requirement from JSONP method. It must allow GET and POS…
Browse files Browse the repository at this point in the history
…T since JSONP (during SSL) only communicates with GET. When in non-SSL, POST can be used.
  • Loading branch information
primaryobjects committed Apr 20, 2012
1 parent 929e5db commit c700591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SSLDemo/Controllers/GhostController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class GhostController : Controller
/// <summary>
/// This method must use JSONP in order to communicate from http to https. JSONP requires GET (does not support POST), so we must leave both protocols available on this method.
/// </summary>
[RequireHttpsByConfig, JsonpFilter, HttpPost]
[RequireHttpsByConfig, JsonpFilter]
public JsonResult Haunt(HauntTarget hauntTarget)
{
string status = "";
Expand Down

0 comments on commit c700591

Please sign in to comment.