Page 1 of 1

Mixed Content: The page was loaded over HTTPS, insecure XMLHttpRequest

Posted: 14 May 2015, 06:13
by PloMar
I have an Ajax function that adds in page some content from server. It was working fine when the page url was with "http", but after I put "https" the Ajax is not working. I get this JavaScript error:

Code: Select all

Mixed Content: The page at 'https:// ...' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http:// ...'. This request has been blocked; the content must be served over HTTPS
Any ideea how to fix it to work with "https"?

Mixed Content: The page was loaded over HTTPS, insecure XMLHttpRequest

Posted: 14 May 2015, 06:37
by MarPlo
Hello,
If the page url is with "https", the Ajax request must be made with "https". So, make sure you access the file on server with the same protocol as the page has.
The ".js" files included with "http" must be changed to "https".
Also, check in "htaccess" file to use "https".