【英文】前端发起请求报错
Introduction
When making requests using Fetch in the frontend, Safari throws an error: The page at https:// was not allowed to display insecure content from http://.
, and Chrome throws an error: The page at 'https://' was loaded over HTTPS, but requested an insecure resource 'http://'. This request has been blocked; the content must be served over HTTPS.
Cause
- HTTP pages are being requested from an HTTPS page.
Solution
- If the target address supports HTTPS, change HTTP to HTTPS.
- If the target address does not support HTTPS, use Nginx reverse proxy to resolve the issue.