I use plupload with html5. I try to upload file from cross-domain site. File uploaded ( I add header Access-Control-Allow-Origin * for server ), but response from server is empty. How to use upload in this case ? For example In jquery I simple select method jsonp.
Share
plupload also sets a
Content-Typeheader, so your server must also respond withAccess-Control-Allow-Headers: Content-Typeor else the OPTIONS request for CORS will fail.If you need to debug this, the Web Inspector in Google Chrome does a fairly good job at pointing out which was the cause for your CORS request to fail.