Skip to content

Commit

Permalink
Disable ValidateAntiForgeryToken for DesignerPreviewController.Block
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarincev committed Feb 12, 2020
1 parent b718191 commit a5ab5a9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public IActionResult Index()
}

[HttpPost("designer-preview/block")]
[ValidateAntiForgeryToken]
//We can't use AntiForgery check here due to IFrame limitations. Browsers don't send cookies from IFrames.
//[ValidateAntiForgeryToken]
public IActionResult Block([FromBody]dynamic data)
{
var page = new ContentPage
Expand Down

0 comments on commit a5ab5a9

Please sign in to comment.