# Question on assethost and cross-domain problems

**URL:** <https://www.ruby-forum.com/t/question-on-assethost-and-cross-domain-problems/145716>\
**Category:** Rails\
**Created:** [August 13, 2008, 8:36am UTC](https://www.ruby-forum.com/t/question-on-assethost-and-cross-domain-problems/145716 "2008-08-13T08:36:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/91b2a8/32.png) [@marcw](https://www.ruby-forum.com/u/marcw)\
**Post date:** [August 13, 2008, 8:36am UTC](https://www.ruby-forum.com/t/question-on-assethost-and-cross-domain-problems/145716/1 "2008-08-13T08:36:42Z")

</div>

Hi,

I have a rails-system running on swiftiply with 10 mongrels and  
serving the static data on apache.  
The swiftiply url is something like “[www.example.net](http://www.example.net)”, the asset host  
is “[static.example.net](http://static.example.net)”.

In most cases it runs fine, but some parts cause crossdomain errors.

One is a redirect in an ajax-call. On FF2 it does no redirection and  
tells me that its not allowed. If i change swiftiply-url to  
“[example.net](http://example.net)” it works.

The other problem appeares with TinyMCE. It works in FF3, but in IE6,7  
and FF2 it not initializes the editor.  
So i have to serve TinyMCE with swiftiply/mongrel and this is not so  
fast.

So my question is if someone knows about these errors and a  
workaround.  
It would be nice if you can help.  
Thanks,  
marcw
