<div dir="ltr"><div><div><div><div>Hello list,<br></div>When any of our users go to settings > extensions > Google so they can sign in and sync their calendars/contacts, they get an error after allowing or denying Google access. When Google's page appears, they can sign in, then authorize or cancel VTiger's request to access their account. When they choose either option, though, a page appears that simply says "Illegal request" and has  "go back" link below the text.<br><br></div>I've found the source of the problem in request.php. Specifically:<br><br>            global $site_URL;<br>            if ((stripos($_SERVER['HTTP_REFERER'], $site_URL) !== 0) && ($this->get('module') != 'Install')) {<br>                throw new Exception('Illegal request');<br>            }<br><br></div>I read this as "if the referrer URL doesn't start with the VTiger install's base URL, and VTiger isn't being installed, throw this exception". This must mean that the URL doesn't start with <a href="http://crm.mysite.com">crm.mysite.com</a>. Yet, the URL of this page is:<br><a href="https://crm.mysite.com/index.php?module=Google&view=Authenticate&service=Google&error=access_denied#">https://crm.mysite.com/index.php?module=Google&view=Authenticate&service=Google&error=access_denied#</a><br><br></div>The "error" should be because I hit "cancel", not wishing to sync my Google account just now, but this also happens if I click "allow". The point is, that URL does indeed start with the URL of VTiger; in config_inc.php, I have $site_URL set to "<a href="https://crm.mysite.com/">https://crm.mysite.com/</a>". Can anyone suggest why this exception is being thrown, since the URL should be fine? Thanks in advance.<br><div><div><br clear="all"><div><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Alex Hall<br></div>Automatic Distributors, IT department<br></div><a href="mailto:ahall@autodist.com" target="_blank">ahall@autodist.com</a><br></div></div>
</div></div></div></div></div></div>