Skip to content

Improve CSRF documentation and generation #501

Open

Description

@aronerben
  • Mention that the default __Host prefix only works with HTTPS, so testing on HTTP localhost with production won't work
  • Change <input type="hidden" name="csrf" value=.../> to <input type="hidden" name="_csrf" value=.../> here
  • Fix the admin UI CSRF name here to use the CSRF middleware parameter

Activity

  1. aronerben commented on Dec 20, 2021

    @aronerben
    ContributorAuthor

    Update 20.12.2021:
    First two TODOs are no longer relevant because the cookie the CSRF is stored in changed (1) and the input name is parameterized now (2).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions