Unsafe JavaScript attempt to access frame with URL https://xxx with URL http://xxx. The frame requesting access has a protocol of 'http', the frame being accessed has a protocol of 'https'. Protocols must match.

   在做某铁道部网站的某个小工具时遇到这个问题。具体看下面截图:

Unsafe JavaScript attempt to access frame with URL https://xxx with URL http://xxx.

   追究其原因是因为 http://www.12306.cn/mormhweb/kyfw/ 使用的HTTP协议,而frame内嵌的网页使用的HTTPS协议,协议不匹配,所以访问不了,下面再上张图,你懂的:

Unsafe JavaScript attempt to access frame with URL https://xxx with URL http://xxx.

相关文章:

  • 2021-11-08
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-11-21
猜你喜欢
  • 2021-04-26
  • 2021-08-01
  • 2022-12-23
  • 2021-04-13
  • 2021-10-18
  • 2021-11-15
  • 2022-01-01
相关资源
相似解决方案