blob: 9a88d7c85efe44efd56d620423519db5914e93c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
+++
title = "method-override"
+++
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
```html
<script src="https://unpkg.com/htmx.org/dist/ext/method-override.js"></script>
```
### Usage
```html
<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>
```
|