我正在尝试进行表单提交,它会上传我从中读取的文件,然后我尝试通过回调发送回从文件中读取的数据。然而,我收到错误
"{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.