我正在尝试执行表单提交,它上传我读取的文件,然后尝试通过回调发回从文件读取的数据。但是,我收到错误
"{success:false,message:"Blocked a frame with origin "http://localhost:####" from accessing a cross- origin frame."}"
因此我的回调永远不会实现,数据也永远不会返回到表单提交的成功回调。
我不完全确定该错误消息的含义......并且我不知道从这里该去哪里。任何帮助将不胜感激。
最佳答案
您可以按照以下任意步骤操作。
1.Either install your sencha app in the same server as your back end.
2.Use below flag in your browser, but don't do it for production (only for development purpose)
--disable-web-security --allow-file-access-from-files --allow-file-access
3. Use JSONP to access resource outside origin.
关于node.js - Ext.Direct 文件上传 - 回调 - 错误 "Blocked a frame with origin",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25729629/