# Interactieve SVG met \\u003cobject\\u003e?

**URL:** <https://meta.discourse.org/t/interactive-svg-using-object/173747>\
**Category:** Self-hosting\
**Created:** [18 december 2020 om 17:25 UTC](https://meta.discourse.org/t/interactive-svg-using-object/173747 "2020-12-18T17:25:01Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![craigconstantine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/craigconstantine/32/511195_2.png) [@craigconstantine](https://meta.discourse.org/u/craigconstantine)\
**Post date:** [9 januari 2021 om 22:02 UTC](https://meta.discourse.org/t/interactive-svg-using-object/173747/6 "2021-01-09T22:02:48Z")

</div>

I’m up against CORS/Access-Control-Allow-Origin. I’m not familiar with how that works…

I have two sites—the Hosted Discourse site ([forum.moversmindset.com](http://forum.moversmindset.com)) and an Apache-based Wordpress site ([moversmindset.com](http://moversmindset.com)). Note that there’s no obvious content on the Wordpress site—it’s all generating RSS feeds, serving media, etc. If you go to the domain, it’ll just send you to the forum.

I have a directory, that serves SVG-type replies to GET request. For example (not the real url) [https://moversmindset.com/foo/bar.php](https://moversmindset.com/foo/bar.php)

In my Discourse theme I’m experimenting with script code. (eventually to be a proper plugin) It calls api.decorateCooked() on particular DIVs that have some data-custom added to them. So inside the function called by decorateCooked() I’m doing what amounts to

$.get(‘[https://moversmindset.com/foo/bar.php](https://moversmindset.com/foo/bar.php)’ … bla bla blah

So I want to retrieve the SVG and then append it to the DOM. But my browser error console says:

 ![Screen Shot 2021-01-09 at 16.59.07](https://global.discourse-cdn.com/meta/original/3X/d/4/d470addbcb1670fe1dfb26549f2feb6a85025555.png)

# Question:

Does that mean I have to configure CORS on the Discourse installation or over on the Apache/Wordpress?

I _do_ have [https://moversmindset.com](https://moversmindset.com) configured as allowed in CORS on Discourse.

---

_[View the full topic](https://meta.discourse.org/t/interactive-svg-using-object/173747)._
