htmx-ext-method-override
v2.0.1
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.
Downloads
7
Readme
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/[email protected]/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>