I am using a self hosted Matomo (Piwik) but since I started using Cloudflare, I have been getting this login error:
Error : Form security failed. Please reload the form and check that your cookies are enabled. If you use a proxy server, you must configure Matomo to accept the proxy header (https://matomo.org/faq/how-to-install/#faq_98) that forwards the Host header. Also, check that your Referrer header is sent correctly.
I have tried adding the code to the config.ini file as stated to configure Matomo to accept the proxy header but it doesn’t solve the problem. The only way I can login to Matomo is to turn Cloudflare Development on. Can someone help identify a fix for this problem?