Errors with JQuery

Hello everyone. I am passing my website from local to online and my server does not allow me to work in http but rather in https. I get the following error with jquery

Mixed Content: The page at ‘https://…/registro.php’ was loaded over HTTPS, but requested an insecure script ‘http://code.jquery.com/jquery-1.11.0.min.js’ . This request has been blocked; the content must be served over HTTPS.

So it doesn’t load jquery.

In other parts of the web I get this error caught ReferenceError: $ is not defined And I think it is derived from the same problem. How can I change in Bootstrap Studio so that it queries jquery from https?

A greeting and Thanks forward.

In your registro.php you have a script tag with the
src=“http://code.jquery.com/jquery-1.11.0.min.js” change that to https

BTW
Using an outdated version of jQuery such as 1.11 may expose your website to security risks. jQuery 1.11 was released in 2014 and hasn’t received any security updates since 2016. This means that any security vulnerabilities discovered since then have not been patched.

It’s always recommended to use the latest version of jQuery or any other software library to ensure the best security and compatibility with modern web standards. The current version of jQuery is 3.6.0, which includes various security patches and improvements.

If for some reason you need to use an older version of jQuery, it’s important to make sure that you are aware of any known vulnerabilities and take steps to mitigate them. You can check the jQuery website and other online resources to stay informed about any security issues and how to address them.

1 Like