【问题标题】:run perl script from another webpage从另一个网页运行 perl 脚本
【发布时间】:2019-03-07 13:10:34
【问题描述】:

我需要从另一个 www 页面运行 perl 脚本,而不会对不安全的内容产生警告。 我有 SSL https 安全 www 页面:https://www.whatever.com 其中 index.htm 有一行:

<img src="http://www.otherpage.com/myperl.pl?param1=hello">

myperl.pl 是一个简单的日志计数器——它不加载任何东西。在 www.otherpage.com 上它只是创建一个日志文件。 www.otherpage.com 没有 SSl 证书,但 www.whatever.com 有。

如何运行脚本以使“挂锁”图标保持绿色?

【问题讨论】:

  • 您对 www.otherpage.com 有多少控制权,您可以将其设置为允许 https 请求吗?
  • 我可以完全控制 www.otherpage.com。其他页面没有 HTTPS/SSL 证书。

标签: perl https http-status-codes


【解决方案1】:

您可以使用 Lets Encrypt 为两个域获取有效的 SSL 证书。

您应该查看 CORS,https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

【讨论】:

    猜你喜欢
    • 2016-05-05
    • 1970-01-01
    • 2019-10-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-13
    • 2016-09-03
    相关资源
    最近更新 更多