<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Omeka S on Cloudron as host for embedded exhibits - CORS]]></title><description><![CDATA[<p dir="auto">We are using Omeka S on Cloudron as an host for several online exhibitions.</p>
<p dir="auto">Because something like <code>https://omeka.&lt;cloudron&gt;.&lt;tld&gt;/s/&lt;my-exhibit&gt;</code> is not a very nice and memorable URL, we would like to embed these exhibits in our primary website to get URLs like <code>https://www.&lt;museum&gt;.&lt;tld&gt;/virtual-exhibits/&lt;my-exhibit&gt;</code>.</p>
<p dir="auto">We configured our nginx to handle these URLs and to get the content from Omeka, but we ran into a Cross-Origin Resource Sharing (CORS) issue. Searching the forum i found several entries regarding to CORS (e.g. <a href="https://forum.cloudron.io/topic/9011/bug-cors-error?_=1697030171854">Bug: CORS error</a>), but there doesn't seem to be a consistent solution. In <a href="https://forum.cloudron.io/post/64706">https://forum.cloudron.io/post/64706</a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> gives a quick workaround, but this is not consistent.</p>
<p dir="auto">As this issue wasn't addressed in the specific forum and time goes by, i wonder if someone knows a solution for the scenario above. I'm pretty sure I am not the only one with this requirement.</p>
]]></description><link>https://forum.cloudron.io/topic/10179/omeka-s-on-cloudron-as-host-for-embedded-exhibits-cors</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 02:36:42 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/10179.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Oct 2023 13:37:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Omeka S on Cloudron as host for embedded exhibits - CORS on Wed, 17 Jan 2024 13:40:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/geho" aria-label="Profile: GeHo">@<bdi>GeHo</bdi></a> said in <a href="/post/81244">Omeka S on Cloudron as host for embedded exhibits - CORS</a>:</p>
<blockquote>
<p dir="auto">Because the HTML itself delievered by Omeka loads scripts, images, css etc. from the domain of origin. This causes the CORS issues.</p>
</blockquote>
<p dir="auto">aren't all these covered by same origin policy exceptions ? <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#cross-origin_network_access" target="_blank" rel="noopener noreferrer nofollow ugc">https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#cross-origin_network_access</a></p>
]]></description><link>https://forum.cloudron.io/post/81267</link><guid isPermaLink="true">https://forum.cloudron.io/post/81267</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 17 Jan 2024 13:40:55 GMT</pubDate></item><item><title><![CDATA[Reply to Omeka S on Cloudron as host for embedded exhibits - CORS on Wed, 17 Jan 2024 09:09:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a></p>
<blockquote>
<p dir="auto">Why do you think this is a CORS issue?</p>
</blockquote>
<p dir="auto">Because the HTML itself delievered by Omeka loads scripts, images, css etc. from the domain of origin. This causes the CORS issues.</p>
]]></description><link>https://forum.cloudron.io/post/81244</link><guid isPermaLink="true">https://forum.cloudron.io/post/81244</guid><dc:creator><![CDATA[GeHo]]></dc:creator><pubDate>Wed, 17 Jan 2024 09:09:06 GMT</pubDate></item><item><title><![CDATA[Reply to Omeka S on Cloudron as host for embedded exhibits - CORS on Wed, 17 Jan 2024 09:07:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jeau" aria-label="Profile: jeau">@<bdi>jeau</bdi></a> Thanks for the suggestions, and sorry for replying this late. However: Happy New Year!</p>
<p dir="auto">I don't think that using iFrames to embed an omeka exhibition is very convenient for the user, because he loses the ability to refer to or set a bookmark for a specific page.</p>
]]></description><link>https://forum.cloudron.io/post/81243</link><guid isPermaLink="true">https://forum.cloudron.io/post/81243</guid><dc:creator><![CDATA[GeHo]]></dc:creator><pubDate>Wed, 17 Jan 2024 09:07:36 GMT</pubDate></item><item><title><![CDATA[Reply to Omeka S on Cloudron as host for embedded exhibits - CORS on Sun, 15 Oct 2023 12:46:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/geho" aria-label="Profile: GeHo">@<bdi>GeHo</bdi></a> I understand that your main site is not an Omeka installation and that you attempt to integrate each exhibit with an iframe as <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> suggests. Is this the case? The CORS issue could come from this approach.</p>
<p dir="auto">I can suggest a solution for URLs. You can rename your Omeka site from <code>https://omeka.&lt;cloudron&gt;.&lt;tld&gt;</code> to  <code>https://virtual-exhibits.&lt;museum&gt;.&lt;tld&gt;</code> or you can configure a web redirection from <code>https://omeka.&lt;cloudron&gt;.&lt;tld&gt;</code> to  <code>https://virtual-exhibits.&lt;museum&gt;.&lt;tld&gt;</code>.  Then configure the rewriting of the right-hand part of the URL by using <a href="https://gitlab.com/Daniel-KM/Omeka-S-module-CleanUrl" target="_blank" rel="noopener noreferrer nofollow ugc">Omeka-S-module-CleanUrl</a> or by inserting rewriting rules in the <code>.htaccess</code> file at the root of your Omeka installation. You can modify the <code>.htaccess</code> file.</p>
<p dir="auto">To integrate an Omeka exhibit into a site. I've tested it and it seems to work.</p>
<ul>
<li>one of my Omeka exhibits: <a href="https://horae-pictavenses.fr/s/hp/page/accueil" target="_blank" rel="noopener noreferrer nofollow ugc">https://horae-pictavenses.fr/s/hp/page/accueil</a></li>
<li>within an iframe: <a href="https://tools.mexina.fr/iframe/" target="_blank" rel="noopener noreferrer nofollow ugc">https://tools.mexina.fr/iframe/</a></li>
<li>an experimental exhibit that uses external IIIF references: <a href="https://graffitheque.eu/s/site/page/welcome" target="_blank" rel="noopener noreferrer nofollow ugc">https://graffitheque.eu/s/site/page/welcome</a></li>
<li>within an iframe: <a href="https://tools.mexina.fr/iframe/graf.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://tools.mexina.fr/iframe/graf.html</a></li>
</ul>
]]></description><link>https://forum.cloudron.io/post/75337</link><guid isPermaLink="true">https://forum.cloudron.io/post/75337</guid><dc:creator><![CDATA[jeau]]></dc:creator><pubDate>Sun, 15 Oct 2023 12:46:10 GMT</pubDate></item><item><title><![CDATA[Reply to Omeka S on Cloudron as host for embedded exhibits - CORS on Fri, 13 Oct 2023 15:25:30 GMT]]></title><description><![CDATA[<p dir="auto">Also how is the embedding happening on the main site? Are you adding an iframe or is there some other way with omeka-s to integrate?</p>
]]></description><link>https://forum.cloudron.io/post/75257</link><guid isPermaLink="true">https://forum.cloudron.io/post/75257</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 13 Oct 2023 15:25:30 GMT</pubDate></item><item><title><![CDATA[Reply to Omeka S on Cloudron as host for embedded exhibits - CORS on Fri, 13 Oct 2023 03:02:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/geho" aria-label="Profile: GeHo">@<bdi>GeHo</bdi></a> If I understood your setup correctly, you configured nginx to translate <code>www.&lt;museum&gt;.&lt;tld&gt;</code> calls to your <code>omeka.&lt;cloudron&gt;.&lt;tld&gt;</code> ? If this is the case, then there shouldn't be any CORS issue. CORS issue is hit when the browser makes requests directly to omeka when you visit your main site and thus bypassing your nginx. Why do you think this is a CORS issue?</p>
]]></description><link>https://forum.cloudron.io/post/75219</link><guid isPermaLink="true">https://forum.cloudron.io/post/75219</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 13 Oct 2023 03:02:56 GMT</pubDate></item></channel></rss>