So watcher doesn't seem to work properly on our forum, which is on a subdomain. forum.ourdomain.com.
We're using the subdomain module to put the forum paths at forum.ourdomain.com, so we can access a particular forum path at "forum.ourdomain.com/topic/1234" , or alternatively at it's node path directly "ourdomain.com/node/1234"
Watcher works fine at the direct node path.
Watcher doesn't work at the forum path.
- The "You are not watching this post" message appears correctly.
- Clicking it invokes the js fade / show, but of the same message, it doesn't switch to "you're now watching"
- Nothing shows up in firebug console.
- The post is not watched when I check "My watched posts" tab.
Any thoughts?
Thanks!
Comments
Comment #1
dannypfeiffer commentedsome more info:
using live hhtp headers, i can see that instead of a GET request, it's being sent through as OPTIONS for some reason.
OPTIONS /user/47668/watcher/toggle/2132?destination=node%2F2132&token=03acb94cab34b34ed08d7b995a7e1214&async=true HTTP/1.1
Which returns a 403 forbidden from the server
When i use the watcher link from the direct node path (rather than the subdomain), the only difference is that OPTIONS is now GET, and i get a successful 200 returned.
// UPDATE //
OK, so subdomain = cross domain which apparently isn't really allowable w/ AJAX (after perusing SO: http://stackoverflow.com/questions/1256593/jquery-why-am-i-getting-an-op...)
Anyone know of a workaround?
Comment #2
sigpoggy commentedYou might look at this:
Cross-domain requests with jQuery
Comment #3
Kaloyan Petrov commentedDid anybody have luck sending the ajax request for subdomain urls?