@Kisil

Почему запросы отправляются не через https?

$.ajax({
                url: '{{ route('checkouts-address-add') }}',
                type: "POST",
                data: $data


Вроде бы все сделал нормально, поставил на апач
<VirtualHost *.*.*.39:80>
#    ServerAdmin webmaster@example.com
    ServerName lon***.com
    DocumentRoot /var/www/html/lon***/public

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    <Directory /var/www/html/lon***>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

APP_NAME=Laravel
APP_ENV=production
APP_KEY=base64:*****
APP_DEBUG=1
APP_URL=https://lon*****.com
  • Вопрос задан
  • 131 просмотр
Решения вопроса 1
Daemon23RUS
@Daemon23RUS
<VirtualHost *.*.*.39:80> это http
443 порт будет https, и не забудьте про сертификаты.

UPD:in the AppServiceProvider in the boot() method
if($this->app->environment('production')) {
    \URL::forceScheme('https');
}
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы