'Button cannot be clicked: Mixed Content error

When i clicked a button on my php website, it cannot be clicked. After I checked the google chrome console, it gives out the following information:

Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ''. This request has been blocked; the content must be served over HTTPS.

How to solve this problem and let the button can be clicked normally?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source