htmx-ext-method-override

2.0.0 • Public • Published

This extension makes non-GET and POST requests use a POST with the X-HTTP-Method-Override header set to the actual HTTP method. This is necessary when dealing with some firewall or proxy situations.

Install

<script src="https://unpkg.com/htmx-ext-method-override@2.0.0/method-override.js"></script>

Usage

<body hx-ext="method-override">
   <button hx-put="/update">
     This request will be made as a POST w/ the X-HTTP-Method-Override Header Set
</button>
</body>

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i htmx-ext-method-override

    Weekly Downloads

    3

    Version

    2.0.0

    License

    none

    Unpacked Size

    8.44 kB

    Total Files

    7

    Last publish

    Collaborators

    • carsongross