I would like to upload files to cross domain server from extjs using
method. When i call
, request is going to my restful web service and file is getting uploaded successfully. But the response is blocked at the browser with message: Blocked a frame with origi…host:1841" from accessing a cross-origin frame.
From older posts and form submit code, i found that
is sending the Ajax request with out
statement due to which cross domain response is blocked.
I thought of sending normal Ajax request but dont know how the file data can be read and send to server through ajax request.
Is there anyway in php
to send the file data to server as
does? Can someone help me on this problem?
Solution is: What does document.domain = document.domain do?