Getting a 406 Not Acceptable Error – What’s Causing It and How Do I Fix It? or Why Am I Seeing a 406

34 Replies, 2833 Views

Ugh, 406 errors are the worst. Could be a content-type issue—like your server expects JSON but gets HTML or vice versa.

Quick fix: Add this to your .htaccess:
```
Header set Accept "*/*"
```

If that doesn’t work, maybe your backend’s choking on charset or encoding. Check the dev tools network tab to see what’s being sent/received.

Messages In This Thread



Users browsing this thread: 1 Guest(s)