http://v2.mpk.gov.my/mail/?_task=mail&_action=getunread&_remote=1
will get invalid request. Most of the ajax request failed. I'm be able to login to the mailbox but all the AJAX (from firebug) request is failed (404) . Is something wrong here ?
I've tried to search the forum.
if ($OUTPUT->ajax_call)
{
if (empty($CONFIG['devel_mode']) && !rc_request_header('X-RoundCube-Referer'))
{
header('HTTP/1.1 404 Not Found');
die("Invalid Request");
}
}
this code is giving the error, so I add /config/main.inc.php
$rcmail_config['devel_mode'] = true;
the ajax problem is gone. I think it's something about rc_request_header('X-RoundCube-Referer') not getting the require header.
I'll give more info on this.
It' seem rc_request_header('X-RoundCube-Referer') allways return NULL . Can someone point me when this header is set in roundcube ? I can't find anything related to this X-Roundcube-Referer set in the code.