[Rails] Re: Login modal using default rails ajax request not working with subdomains

2015-10-23 Thread Daniel Loureiro
your problem it's related with CORS. A little recipe to solve this: 1. install rack-cors gem. On your Gemfile: # Gemfile gem 'rack-cors', :require => 'rack/cors' 2. on shell: bundle install 3. on your application.rb: # application.rb ... config.middleware.insert_before 0, "Rack::Cors" do

[Rails] Re: Login modal using default rails ajax request not working with subdomains

2015-10-21 Thread Matt Jones
On Friday, 16 October 2015 03:37:03 UTC-4, Ruby-Forum.com User wrote: > > I am having a devise user model. > > To login I am using twitter-bootstrap modal.The modal is by default > hidden and shown only after an rails default ajax request is send to the > server. > > It works fine with localh

[Rails] Re: Login modal using default rails ajax request not working with subdomains

2015-10-20 Thread Chris Ward
Sorry to tell you, but this behavior is by design. You'll have to put it on the same subdomain as the accessed page or use a workaround like an API. This is actually a limitation of AJAX. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Go