Title: ajax request 403 error
Last modified: March 20, 2025

---

# ajax request 403 error

 *  Resolved [ralak](https://wordpress.org/support/users/ralak/)
 * (@ralak)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/ajax-request-403-error/)
 * Hello,
 * I am experiencing an issue across all my clients’ websites when LiteSpeed Cache
   is active. Specifically, **Ajax requests** related to functions like **user login**
   or **adding products to the cart** return a **403 Forbidden** error. I have tried
   most solutions suggested in forums (e.g., enabling ESI), but they did not resolve
   the issue. Enabling ESI even caused a new problem where logged-in users occasionally
   see other users’ data.
 * Could you please advise if there are specific LiteSpeed Cache settings I need
   to enable or disable to prevent 403 errors for Ajax requests involving actions
   like login or add-to-cart?
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/ajax-request-403-error/#post-18374123)
 * if ESI didn’t work out nicely for you , then only solution is to fallback to 
   shorter TTL like other cache plugin does , please try set page TTL to somewhere
   like 6 – 8 hours

Viewing 1 replies (of 1 total)

The topic ‘ajax request 403 error’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 1 reply
 * 3 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/ajax-request-403-error/#post-18374123)
 * Status: resolved