<p>I would like to make an ajax call to a different server (same domain and box, just a different port.)
e.g.</p>

<p>My page is</p>

<pre>
http://localhost/index.html
</pre>

<p>I would like to make a ajax get request to:</p>

<pre>
http://localhost:7076/?word=foo
</pre>

<p>I am getting this error:</p>

<pre>
Access to restricted URI denied (NS_ERROR_DOM_BAD_URI) 
</pre>

<p>I know that you can not make an ajax request to a different domain, but it seem this also included different ports? are there any workarounds?</p>

Have a certain page on your port 80 server proxy requests to the other port. For example:
```
```
http://localhost/proxy?port=7076&url=%2f%3fword%3dfoo
```
```
Note the url encoding on the last query string argument value.