Answer the question
In order to leave comments, you need to log in
How to upload file without page reload and without iframe?
This is the case, Did the file upload via iframe, everything worked fine on localhost! Now I transferred everything to hosting, the download script to one, and the site to another. And it turned out that due to the browser's security policy, the browser forbids me to read the contents of the iframe from another domain, more precisely from a subdomain. I tried to allow access with:
Nothing worked! So I need a way to download a file and get a response without an iframe, all without reloading the page. header('Access-Control-Allow-Origin: *');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question