I checked all similar error but none of them solved my problem. I have a React and Spring Boot app. Frontend and Backend are separated. They both work in windows server 2012. I take build of react app and add it to IIS Manager. I created a certificate from ZeroSSL and I added the certificate to IIS manager. When I go to my web page it says secured it works fine. But When I make any request to my java spring boot backend. It gives error. Because it makes request in https. but I wrote in "http" not "https".
It gives below error.
Mixed Content: The page at 'https://webpage.com/#/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://IP:8080/api/login/. This request has been blocked; the content must be served over HTTPS.
After that I tried to convert my java backend app http to https, I added these to application.properties
security.require-ssl=true
server.ssl.key-store=certificate
server.ssl.key-store-password=password
server.ssl.keyStoreType=PKCS12
server.ssl.keyAlias=tomcat
I created same certificate and add under application.properties file but still gives me error. I am really stuck on it. any there is nobody to near to help me. I hope you can help me.