i'm working on a project and all batch callbacks in http not https so instead of redirecting to https://example.com/batch?id=844&op=start
redirect to http://example.com/batch?id=844&op=start
, and as result query params get lost and redirect me after to https://example.com/batch
which gives me a 403 forbidden page:
i have checked htaccess file and also the server i don't have any redirection.
anyone has experienced this, any help ?
EDIT:
I have checked the result of \Drupal\Core\Url::fromRoute('<front>')->setAbsolute()->toString()
i get the url correct with the right protocol and also i have added:
$settings['reverse_proxy'] = TRUE;
$settings['reverse_proxy_addresses'] = array($_SERVER['REMOTE_ADDR']);
to my settings.php and again no luck.
Note: all redirections in the site works perfectly with https only this one!