So I just tried upgrading from 1.1.4 to 1.2 and everything breaks. I have gotten ajax calls working with the json data type. However anything with the type of script is seen by rails as a html request and it work accept the data as well. I am manually setting the headers, which I have had to do so rails can recognize it as a javascript request. I am even using the compatibility plugin and nothing works. I can just go back to 1.1.4 because a lot of the plugins I am wanting to use require 1.2. Anyone have any ideas how to fix this?
The problem is that 1.2 does not send the xhr header if the call is made with a full http:// uri. If you just use the pathname it works fine. Took me a few hours of playing to figure this one out. Guess its a cross site security fix.
Leave a comment on tiwatson's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic