I just installed 1.0.2 on hostgator for a new project. I’ve been working on it for a few days with no error message. Today, I started getting this message: A possible CSRF attempt was detected. No referer was provided by the server.
Per another thread I tried this fix:
The only fix was for me to change the line 228 in manager/index.php
from
if (isset($modx->config[’validate_referer’]) && $modx->config[’validate_referer’]) {
to
if (isset($modx->config[’validate_referer’]) && $modx->config[’validate_referer’] == ’1’) {
After deleting: assets/cache/siteCache.idx.php and refreshing the cache in modx manager and on the browser, no effect.
BTW, I saw two versions of the fix one like this: == ’1’ and one like this == 1. I tried both.
I have 1.0.2 installed on hostgator for another project and have never received this message. Settings appear to be the same. Both have Validate HTTP_REFERER headers? set to yes in the configuration page in the manager.
Not sure what to try next.
Thank you!