When purging cache from the LiteSpeed Caching plugin the error no referer is shown and purging is not working.

This error is caused by the Security Headers Referrer-Policy setting “no referer” on the server (or Cloudflare).
The no-referrer value instructs the browser to never send the referer header with requests that are made from your site. This also include links to pages on your own site.
To fix the issue change the policy from
Referrer-Policy: no-referrer
to
Referrer-Policy: no-referrer-when-downgrade
or
Referrer-Policy: same-origin
On Apache webserver this can be set either in the .htaccess file or that site, or server-wide in the:
/etc/apache2/conf.d/userdata/headers.conf
- For cpanel please follow this guide: https://support.cpanel.net/hc/en-us/articles/1500001533562-How-to-add-nosniif-CORS-HSTS-Clickjack-and-X-Xss-Protection-headers-on-a-per-domain-basis
- For Cloudflare: https://developers.cloudflare.com/pages/platform/headers
Was this post helpful?
Let me know if you liked the post. That’s the only way I can improve. 🙂

