In ExtJs I am uploading a file via form.submit.
if (field.up('form').getForm().isValid()) {
field.up('form').getForm().submit({
url: ExtApplication4.util.GlobalVar.urlUploadPositionSheet,
waitMsg: 'Uploading your file...',
headers : {
'Content-Type' : 'text/html'
},
Error message
{success:false,message:"Blocked a frame with origin "http://localhost:57007" from accessing a cross-origin frame."}
I see there's tons of posts about this... Extjs fileuplaod - cross-origin frame
But even though I am following it I still cannot return success.
Does anyone know where I would put the
response.write('document.domain = "' + params.__domain + '";'); response.write(JSON.stringify({msg: 'Welcome ' + params.name})); response.end('');
that is mentioned in the solution. If that is even the solution.