On 5/23/2019 at 9:03 PM, Prestahost.cz said:Hello,
there is described one of possible causes of invalid token together with the solution
it apply for specific server configuration but be sure to check your phpinfo for $_SERVER[‘HTTPS’] variable anyway
This is THE solution!
if(isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https'){
$_SERVER['HTTPS']='on';
}
Add this on your adminxxxxxxxxxxxxx/index.php top, just after <?php
There is NGINX on my server and $_SERVER are rewritten. There wasn't $_SERVER['HTTPS'] variable.