Skip to content

Use json for htmx posts #25

@Xylon2

Description

@Xylon2

With this extension we can make HTMX post in JSON instead of form-urlencoded: https://github.com/bigskysoftware/htmx-extensions/blob/main/src/json-enc/README.md

And we can send the anti-forgery token as a header with HTMX hx-headers.

Advantages:

  • handles lists better

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