【问题标题】:Moodle uploading file issue Uncaught DOMException: Blocked a frame with originMoodle 上传文件问题 Uncaught DOMException: Blocked a frame with origin
【发布时间】:2019-06-15 06:31:00
【问题描述】:

当我尝试在添加问题页面(如 docx、xlsx)中上传某种文件时,我遇到了 moodle 的问题,我在控制台出现以下错误:

Uncaught DOMException: Blocked a frame with origin "http://example.com" from accessing a cross-origin frame.
at Function.O.getValue (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:14670:14)
at Y_Node.DEFAULT_GETTER (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:30339:24)
at Y_Node._get (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:30422:41)
at Y_Node.get (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:30395:24)
at IO._uploadComplete (http://yui.yahooapis.com/combo?3.13.0/datatype-xml-parse/datatype-xml-parse.js&3.13.0/io-xdr/io-xdr.js&3.13.0/io-form/io-form.js&3.13.0/io-upload-iframe/io-upload-iframe.js&3.13.0/queue-promote/queue-promote.js&3.13.0/io-queue/io-queue.js&3.13.0/event-resize/event-resize.js&3.13.0/dd-ddm/dd-ddm.js&3.13.0/dd-ddm-drop/dd-ddm-drop.js&3.13.0/dd-proxy/dd-proxy.js&3.13.0/dd-constrain/dd-constrain.js&3.13.0/dd-drop/dd-drop.js&3.13.0/dd-scroll/dd-scroll.js&3.13.0/dd-drop-plugin/dd-drop-plugin.js&3.13.0/dd-delegate/dd-delegate.js:724:44)
at Y_Node.<anonymous> (http://yui.yahooapis.com/combo?3.13.0/datatype-xml-parse/datatype-xml-parse.js&3.13.0/io-xdr/io-xdr.js&3.13.0/io-form/io-form.js&3.13.0/io-upload-iframe/io-upload-iframe.js&3.13.0/queue-promote/queue-promote.js&3.13.0/io-queue/io-queue.js&3.13.0/event-resize/event-resize.js&3.13.0/dd-ddm/dd-ddm.js&3.13.0/dd-ddm-drop/dd-ddm-drop.js&3.13.0/dd-proxy/dd-proxy.js&3.13.0/dd-constrain/dd-constrain.js&3.13.0/dd-drop/dd-drop.js&3.13.0/dd-scroll/dd-scroll.js&3.13.0/dd-drop-plugin/dd-drop-plugin.js&3.13.0/dd-delegate/dd-delegate.js:569:34)
at Y.Subscriber._notify (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:26572:35)
at Y.Subscriber.notify (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:26601:24)
at Y.CustomEvent._notify (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:26264:17)
at Y.CustomEvent._procSubs (http://example.com/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js:26390:36)

此问题仅在某些计算机上出现 例如,对于计算机 1,它可以与所有浏览器完美配合,但对于计算机 2,它在所有浏览器中都不能正常工作 请注意,有些文件正在上传,没有错误,例如 png、jpg 文件

有什么帮助吗?

【问题讨论】:

    标签: php moodle moodle-api


    【解决方案1】:

    在 httpd.conf 中

    找线

    LoadModule reqtimeout_module modules/mod_reqtimeout.so
    

    评论该行:

    #LoadModule reqtimeout_module modules/mod_reqtimeout.so
    

    重新启动 Apache

    【讨论】:

      猜你喜欢
      • 2019-01-19
      • 2019-07-19
      • 1970-01-01
      • 2016-04-15
      • 2018-12-12
      • 1970-01-01
      • 2017-01-13
      • 2020-12-10
      相关资源
      最近更新 更多