The
The problem is that the HTTP requests from the app to the Springboot server all fail.
I ran the Springboot server with SSL, and also without. Both the requests don't work.
The server doesn't even return a status code, this is how the Chrom network tools look like:
Why changing the client Nginx app to HTTPS affects the server side when the requests should be the same, using HTTP? How can I fix this?
CodePudding user response:
from Firefox Documentation:
If your website delivers HTTPS pages, all active mixed content
delivered via HTTP on this pages will be blocked by default.
Consequently, your website may appear broken to users
The best strategy to avoid mixed content blocking is to serve all the content as HTTPS instead of HTTP.
For your own domain, serve all content as HTTPS and fix your links. Often, the HTTPS version of the content already exists and this just requires adding an "s" to links - http:// to https://.
However, in some cases, the path may just be incorrect to the media in question. There are online as well as offline tools (depending on your operating system) such as linkchecker to help resolve this.
CodePudding user response:
If you moved to HTTPS all calls should be through that.
You can use NGINX to automatically do this.
https://phoenixnap.com/kb/redirect-http-to-https-nginx
https://serversforhackers.com/c/redirect-http-to-https-nginx