<?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[CORS for Surfer]]></title><description><![CDATA[<p dir="auto">Hello!</p>
<p dir="auto">I've recently discovered the beauty that is Surfer and am already using it for multiple different purposes.</p>
<p dir="auto">I've just come across a use case where I need CORS from my Surfer instance. I know the basics of CORS but don't know too much about the in-depth details of it to know what I'm specifically looking for (in the way of implementation). I am able to access my file just fine through a new tab for example, but when I need a separate web service to access these files, I get the following errors in the console. Thoughts? Has anyone come across this before? Wondering if I could even leverage the Security settings somehow to enable this?</p>
<p dir="auto"><img src="/assets/uploads/files/1605915683605-9c44d403-4d21-4fad-bc99-0834bc22fb5a-image-resized.png" alt="9c44d403-4d21-4fad-bc99-0834bc22fb5a-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.cloudron.io/topic/3765/cors-for-surfer</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 15:18:44 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/3765.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Nov 2020 23:42:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CORS for Surfer on Mon, 23 Nov 2020 23:07:21 GMT]]></title><description><![CDATA[<p dir="auto">This is added to the just released version. Please let me know if it does not work for your use-case.</p>
]]></description><link>https://forum.cloudron.io/post/19833</link><guid isPermaLink="true">https://forum.cloudron.io/post/19833</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 23 Nov 2020 23:07:21 GMT</pubDate></item><item><title><![CDATA[Reply to CORS for Surfer on Tue, 24 Nov 2020 03:11:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mehdi" aria-label="Profile: mehdi">@<bdi>mehdi</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> it was the right URL, but that doesn't mean I'm not an idiot <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=c34f2a691b3" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /> I forgot to actually update the app to the latest version with CORS compatibility <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f605.png?v=c34f2a691b3" class="not-responsive emoji emoji-android emoji--sweat_smile" style="height:23px;width:auto;vertical-align:middle" title="😅" alt="😅" /></p>
<p dir="auto">After an update, all is working as expected! Appreciate the help and quick turn around!</p>
<p dir="auto">[can mark as resolved]</p>
]]></description><link>https://forum.cloudron.io/post/19850</link><guid isPermaLink="true">https://forum.cloudron.io/post/19850</guid><dc:creator><![CDATA[thetomester13]]></dc:creator><pubDate>Tue, 24 Nov 2020 03:11:16 GMT</pubDate></item><item><title><![CDATA[Reply to CORS for Surfer on Tue, 24 Nov 2020 00:37:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thetomester13" aria-label="Profile: thetomester13">@<bdi>thetomester13</bdi></a> Are you absolutely sure of the URL you are trying to load? The OPTION request gives a 404 (and the other error seems to be Firefox not liking a cross-domain 404 or something).</p>
]]></description><link>https://forum.cloudron.io/post/19841</link><guid isPermaLink="true">https://forum.cloudron.io/post/19841</guid><dc:creator><![CDATA[mehdi]]></dc:creator><pubDate>Tue, 24 Nov 2020 00:37:27 GMT</pubDate></item><item><title><![CDATA[Reply to CORS for Surfer on Tue, 24 Nov 2020 00:24:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> amazing!</p>
<p dir="auto">However, not sure this solved my particular use case <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f615.png?v=c34f2a691b3" class="not-responsive emoji emoji-android emoji--confused" style="height:23px;width:auto;vertical-align:middle" title=":/" alt="😕" /><br />
This is what I'm seeing now in the Networking tab:<br />
<img src="/assets/uploads/files/1606177349671-screen-shot-2020-11-23-at-7.21.19-pm-resized.png" alt="Screen Shot 2020-11-23 at 7.21.19 PM.png" class=" img-fluid img-markdown" /><br />
Viewing the file I'm trying to access directly works without a problem, and obviously something changed since the errors are different.</p>
<p dir="auto">That being said, I'm about to try and tackle this problem through another way, so I'm not too worried about this specific use case. If you are curious, I'm happy to help debug on my end though.</p>
]]></description><link>https://forum.cloudron.io/post/19837</link><guid isPermaLink="true">https://forum.cloudron.io/post/19837</guid><dc:creator><![CDATA[thetomester13]]></dc:creator><pubDate>Tue, 24 Nov 2020 00:24:56 GMT</pubDate></item><item><title><![CDATA[Reply to CORS for Surfer on Mon, 23 Nov 2020 23:07:21 GMT]]></title><description><![CDATA[<p dir="auto">This is added to the just released version. Please let me know if it does not work for your use-case.</p>
]]></description><link>https://forum.cloudron.io/post/19833</link><guid isPermaLink="true">https://forum.cloudron.io/post/19833</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Mon, 23 Nov 2020 23:07:21 GMT</pubDate></item><item><title><![CDATA[Reply to CORS for Surfer on Sat, 21 Nov 2020 12:54:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> You could enable CORS only for the served files, not for the API.</p>
]]></description><link>https://forum.cloudron.io/post/19668</link><guid isPermaLink="true">https://forum.cloudron.io/post/19668</guid><dc:creator><![CDATA[mehdi]]></dc:creator><pubDate>Sat, 21 Nov 2020 12:54:59 GMT</pubDate></item><item><title><![CDATA[Reply to CORS for Surfer on Sat, 21 Nov 2020 09:18:38 GMT]]></title><description><![CDATA[<p dir="auto">Given that the API would be accessed via a token, I don't see much risk here to enable CORS. I will do so in the next surfer release then.</p>
]]></description><link>https://forum.cloudron.io/post/19664</link><guid isPermaLink="true">https://forum.cloudron.io/post/19664</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Sat, 21 Nov 2020 09:18:38 GMT</pubDate></item><item><title><![CDATA[Reply to CORS for Surfer on Sat, 21 Nov 2020 00:40:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thetomester13" aria-label="Profile: thetomester13">@<bdi>thetomester13</bdi></a> I will let <a class="plugin-mentions-user plugin-mentions-a" href="/user/nebulon" aria-label="Profile: nebulon">@<bdi>nebulon</bdi></a> decide if there are any security issue to allow this (or not). But of course a workaround is simply to proxy the surfer API calls via your backend. These days some privacy extensions also block some api calls to 3rd party sites (which are not a subdomain of the site you browse).</p>
]]></description><link>https://forum.cloudron.io/post/19646</link><guid isPermaLink="true">https://forum.cloudron.io/post/19646</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Sat, 21 Nov 2020 00:40:27 GMT</pubDate></item></channel></rss>