Ugh, 405s are the worst. Had this last month—turned out my server was rejecting POSTs due to a missing `Content-Type` header.
If you’re using fetch() or axios, make sure you’re sending headers like:
```
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
}
```
Also, try uploading a fresh .htaccess from a default WordPress install if you’re using it. Sometimes edits go sideways.
If you’re using fetch() or axios, make sure you’re sending headers like:
```
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
}
```
Also, try uploading a fresh .htaccess from a default WordPress install if you’re using it. Sometimes edits go sideways.
