El contenido de la página web dinámica no aparece si se usa https en la URL

We have deployed a new SSL certificate for our website. We have noticed that dynamic webpages are not loading (data from mysql db) if 'https' is prefixed, at the same time if we open webpage without https the page is loading properly (data from mysql db is getting pulled and displayed).

With 'https'

https://somedomain.com/display.php?pageid=9


Without 'https' (plain http)

http://somedomain/display.php?pageid=9

Cual podría ser el problema ?

preguntado el 05 de marzo de 14 a las 14:03

1 Respuestas

The problem is that the jquery library can't be loaded because it uses http and not https so none of your client-side code is working.

De firebug:

Blocked loading mixed active content "http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"

You should load jquery with https as such :

https://ajax.googleapis.com/ajax/libs/jquery/1.4.3

O así :

//ajax.googleapis.com/ajax/libs/jquery/1.4.3

and depending with what protocol the page it accessed it will load the library over http or https.

In general once you switch to https you should load all your scripts over https otherwise they will be blocked as considered a security flaw.

You can learn more here : ¿Por qué de repente recibo un problema de "Carga bloqueada de contenido activo mixto" en Firefox?

contestado el 23 de mayo de 17 a las 13:05

Expanding on @NeilMasters statement: use //ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js instead because the web browser will default it to the protocol used upon accessing your webpage - MonoZeus

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.