# Load content from an other domain

**URL:** <https://forums.bitovi.com/t/load-content-from-an-other-domain/920>\
**Category:** StealJS\
**Created:** [June 22, 2018, 11:28am UTC](https://forums.bitovi.com/t/load-content-from-an-other-domain/920 "2018-06-22T11:28:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeroencornelissen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/jeroencornelissen/32/180_2.png) [@jeroencornelissen](https://forums.bitovi.com/u/jeroencornelissen)\
**Post date:** [June 22, 2018, 11:28am UTC](https://forums.bitovi.com/t/load-content-from-an-other-domain/920/1 "2018-06-22T11:28:51Z")

</div>

This is our situation: we have an app on `https://www.domain.com` but our static resources get served from another domain `https://static1.do-main.net`.

Our script tag that loads the initial js looks like this:

```auto
<script 
  src= "https://static4.do-main.net/production/Helpdesk/helpdesk-app/bundles/main.rev-fcfd19a68b.js"
  base-url="/production/Helpdesk/helpdesk-app/bundles"
  bundles-path="."
  cache-key="rev"
  cache-version="2208e282-6b0b-446d-be56-5f9de25e3127">
</script>

```

**Example:**

1. `main.js` loads a new bundle `tickets.js`
2. `tickets.js` will load `tickets.css`
3. `tickets.css` will load `image.svg`.

All these files get loaded from `https://www.domain.com` instead of `https://static4.do-main.net` were `main.js` is loaded initially.

Is it possible to let Steal load content from another domain?

---

<div class="post-metadata">

**Author:** ![justinbmeyer](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/justinbmeyer/32/179_2.png) [@justinbmeyer](https://forums.bitovi.com/u/justinbmeyer)\
**Post date:** [June 22, 2018, 7:46pm UTC](https://forums.bitovi.com/t/load-content-from-an-other-domain/920/2 "2018-06-22T19:46:57Z")

</div>

I think all the DoneJS apps are using a CDN which is on another url. Does their technique work for you?

They use `renderingBaseURL`: [https://github.com/donejs/place-my-order/blob/master/package.json#L40](https://github.com/donejs/place-my-order/blob/master/package.json#L40)

What about changing the `base-url` to `https://static4.do-main.net/production/Helpdesk/helpdesk-app/`?

---

<div class="post-metadata">

**Author:** ![matthewp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/matthewp/32/77_2.png) [@matthewp](https://forums.bitovi.com/u/matthewp)\
**Post date:** [June 22, 2018, 9:01pm UTC](https://forums.bitovi.com/t/load-content-from-an-other-domain/920/3 "2018-06-22T21:01:11Z")

</div>

Yeah, I would include the domain your baseURL.

---

<div class="post-metadata">

**Author:** ![jeroencornelissen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.bitovi.com/jeroencornelissen/32/180_2.png) [@jeroencornelissen](https://forums.bitovi.com/u/jeroencornelissen)\
**Post date:** [June 29, 2018, 2:44pm UTC](https://forums.bitovi.com/t/load-content-from-an-other-domain/920/4 "2018-06-29T14:44:35Z")

</div>

Having some CSP issues in production, will come back to this on monday.
