Php Google文档打印错误:阻止了带有“origin”的框架;http://example.info" 从使用“原点”访问帧;https://docs.google.com"

Php Google文档打印错误:阻止了带有“origin”的框架;http://example.info" 从使用“原点”访问帧;https://docs.google.com",php,jquery,iframe,ssl,google-docs,Php,Jquery,Iframe,Ssl,Google Docs,未捕获的安全性错误:阻止了原点为“”的帧访问原点为“”的帧。请求访问的帧具有“http”协议,被访问的帧具有“https”协议。协议必须匹配 我的iframe src“HTTP://”,但它一直将其更改为“HTTPS://”,并且它将无法工作!获取错误消息:阻止了原点为“”的帧访问原点为“”的帧http://...". 请求访问的帧具有“https”协议,被访问的帧具有“http”协议。协议必须匹配 我的代码如下所示: <iframe id="docfile" src="http://do

未捕获的安全性错误:阻止了原点为“”的帧访问原点为“”的帧。请求访问的帧具有“http”协议,被访问的帧具有“https”协议。协议必须匹配

我的iframe src“HTTP://”,但它一直将其更改为“HTTPS://”,并且它将无法工作!获取错误消息:阻止了原点为“”的帧访问原点为“”的帧http://...". 请求访问的帧具有“https”协议,被访问的帧具有“http”协议。协议必须匹配

我的代码如下所示:

<iframe id="docfile" src="http://docs.google.com/viewer?url=<?php echo urlencode(UPLOAD_URL.FILE_NAME); ?>&embedded=true" width="800" height="470" style="border: none;"></iframe>

<button id="printbtn" onclick="myFunction()">Print</button>

<script>
function myFunction()
{
      window.frames["docfile"].focus();
      window.frames["docfile"].print();
}
</script>