当我尝试从 Https 向 http 提交表单时,它显示:
Form Insecure are you sure you want to submit?
当我提交页面时,它开始加载并永远挂起。此表单提交适用于 android PC 和 safari mac。
最佳答案
正如我在评论中所说,将脚本、图像等的所有 http://
实例更改为 //
。它们将自动检测环境中的任一协议(protocol)它在里面。
如果如您所说,它重定向到 https
协议(protocol)而不是您希望它重定向到 http
,您可以简单地使用 header或其他形式的重定向。
例子:
header("Location: http://example.com/other_page.php");
exit; // This stops further execution
或元方法:
<meta http-equiv="refresh" content="0;url=finalpage.html">
或Javacript:
window.location.replace("http://example.com/");
上面的例子是从:
关于php - Safari ios 将表单从 https 提交到 http 页面开始加载但停止,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52894932/