Skip to content

Antiforgery validation doesn't work with backbone #1

@eibrahim

Description

@eibrahim

This is because the default MVC ValidateAntiForgeryToken only works with POST requests and backbone uses PUT and DELETE.

There is a workaround at http://www.codethinked.com/asp.net-mvc-ajax-csrf-protection-with-jquery-1.5 but it is a pain to do and now it supports validation for ajax-only.

too much friction...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions