Cirilla Documentations

  1. Home
  2. Docs
  3. Cirilla Documentations
  4. Troubleshooting
  5. Add to cart not working

Add to cart not working

Problem with LiteSpeed Cache plugin

Add this to the field “Do Not Cache URIs” in the tab Excludes

/checkout?cart_key_restore=
/wp-json/wc/store/cart

Or if you use any cache plugin try to ignore that API URL

Problem with hosting not supporting Authentication header

You can try this to enable it on your website.

Most shared hosts have disabled the HTTP Authorization Header by default.

To enable this option you’ll need to edit your .htaccess file by adding the following:

    RewriteEngine on
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]

WPENGINE

To enable this option you’ll need to edit your .htaccess file by adding the following (see https://github.com/Tmeister/wp-api-jwt-auth/issues/1):

    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
Was this article helpful to you? Yes No

How can we help?