blueimp/jQuery-File-Upload — Issue #926: Cross domain uploads - json response is empty
Author: rubydev
Created: 2012-01-06 12:57:04+00:00
State: open

Hello, I implemented this plugin with Ruby on Rails 3.1, nginx, nginx upload module and everything works great! :) But when I want upload by cross domain, uploading is done, but json response is empty.

Of course in my nginx server I set in config:

if ($request_method = 'OPTIONS') {
more_set_headers 'Access-Control-Allow-Origin: http://mydomain.com';
more_set_headers 'Access-Control-Allow-Methods: POST, OPTIONS';
more_set_headers 'Access-Control-Allow-Credentials: true';

return 200;
}

And set:

xhrFields: {
withCredentials: true
}

I use browser Firefox 8.0

Thanks!