[英]Safari ios when submiting form from https to http the page start loading but it stops
When I try to submit a form from Https to http it shows:当我尝试从 Https 向 http 提交表单时,它显示:
Form Insecure are you sure you want to submit?
表单不安全 您确定要提交吗?
when I submit the page, it starts loading and it hangs forever.当我提交页面时,它开始加载并永远挂起。 This form submitting works on android PC and safari mac.
此表单提交适用于 android PC 和 safari mac。
As I said in comments, change all instances of http://
to //
for scripts, images, etc. they will automatically detect either protocol for the environment it's in.正如我在评论中所说,将
http://
所有实例更改为//
用于脚本、图像等。它们将自动检测其所在环境的任一协议。
If as you say it redirects to an https
protocol rather than what you would like it to redirect to http
, you can simply use a header or other form of redirection.如果如您所说,它重定向到
https
协议而不是您希望它重定向到http
,则可以简单地使用标头或其他形式的重定向。
Examples:例子:
header("Location: http://example.com/other_page.php");
exit; // This stops further execution
or a meta method:或元方法:
<meta http-equiv="refresh" content="0;url=finalpage.html">
or Javacript:或 Javacript:
window.location.replace("http://example.com/");
The above examples were pulled/borrowed from:上面的例子是从以下地方提取/借用的:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.