Доброго времени суток. При попытке отправить AJAX запрос в консоли ошибка:
Mixed Content: The page at '
https://***.com/cargo/calc-temp/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '
http://***.com/cargo/calc-temp/handler/'. This request has been blocked; the content must be served over HTTPS.
Склоняюсь к тому, что ошибка в htaccess файле.
RewriteEngine On
Options +FollowSymLinks
Options -Indexes
ErrorDocument 403 /404.php
ErrorDocument 404 /404.php
AddDefaultCharset UTF-8
RewriteEngine On
RewriteCond %{HTTP:PORT} !^443$
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
RewriteCond %{THE_REQUEST} ^en\/[A-Z]{3,9}\ /.+\.php/?\ HTTP/
RewriteRule ^\/en\/(.+)\.php/?$ /$1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^\/en\/([^/])\/?$ /en/$1.php [L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.+\.php/?\ HTTP/
RewriteRule ^(.+)\.php/?$ /$1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1.php [L]
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]