<?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[Enable CORS in Freescout API]]></title><description><![CDATA[<p dir="auto">Hello everybody,</p>
<p dir="auto">I have bought the Freescout API Addon in order to sync conversations to my ninoxdb database at <a href="https://app.ninox.com" target="_blank" rel="noopener noreferrer nofollow ugc">https://app.ninox.com</a>. It allows me to start a request from inside the browser to Freescout API. However I obviously run into cross origin resource sharing problems. So I would like you guys to allow CORS for the Freescout API. I need a way to specify which hosts are allowed to share resources with and which headers. The headers in question are Authorization and/or X-Freescout-API-Key.</p>
]]></description><link>https://forum.cloudron.io/topic/3830/enable-cors-in-freescout-api</link><generator>RSS for Node</generator><lastBuildDate>Wed, 10 Jun 2026 16:08:35 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/3830.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Dec 2020 11:10:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Enable CORS in Freescout API on Thu, 07 Jan 2021 10:41:06 GMT]]></title><description><![CDATA[<p dir="auto">This is great news!</p>
]]></description><link>https://forum.cloudron.io/post/22992</link><guid isPermaLink="true">https://forum.cloudron.io/post/22992</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 07 Jan 2021 10:41:06 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Thu, 07 Jan 2021 07:34:46 GMT]]></title><description><![CDATA[<p dir="auto">This issue has been fixed.</p>
]]></description><link>https://forum.cloudron.io/post/22983</link><guid isPermaLink="true">https://forum.cloudron.io/post/22983</guid><dc:creator><![CDATA[paridata]]></dc:creator><pubDate>Thu, 07 Jan 2021 07:34:46 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Thu, 17 Dec 2020 11:17:56 GMT]]></title><description><![CDATA[<p dir="auto">Is this issue now solved since the upstream issue was resolved again?</p>
]]></description><link>https://forum.cloudron.io/post/21850</link><guid isPermaLink="true">https://forum.cloudron.io/post/21850</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 17 Dec 2020 11:17:56 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Fri, 04 Dec 2020 18:29:20 GMT]]></title><description><![CDATA[<p dir="auto">Right, I think this is Freescout not sending the correct CORS headers. The reverse proxy in Cloudron just passes everything through.</p>
]]></description><link>https://forum.cloudron.io/post/20556</link><guid isPermaLink="true">https://forum.cloudron.io/post/20556</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 04 Dec 2020 18:29:20 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Fri, 04 Dec 2020 16:18:04 GMT]]></title><description><![CDATA[<p dir="auto">Since many other apps use CORS normally, I don't think our reverse proxy gets into the way here. Maybe this is still something the upstream addon needs to investigate?</p>
]]></description><link>https://forum.cloudron.io/post/20548</link><guid isPermaLink="true">https://forum.cloudron.io/post/20548</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Fri, 04 Dec 2020 16:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Fri, 04 Dec 2020 08:34:48 GMT]]></title><description><![CDATA[<p dir="auto">let's see...</p>
<p dir="auto">doing the equivalent to</p>
<blockquote>
<p dir="auto">curl -X GET -G "<a href="https://ticket.paridata.net/api/conversations/6951" target="_blank" rel="noopener noreferrer nofollow ugc">https://ticket.paridata.net/api/conversations/6951</a>"  -H "X-FreeScout-API-Key: [api key removed]"</p>
</blockquote>
<p dir="auto">Browser dev tools/Network tab output</p>
<p dir="auto">First entry</p>
<pre><code>Request URL: https://ticket.paridata.net/api/conversations/6951
Referrer Policy: strict-origin-when-cross-origin
Provisional headers are shown
Accept: */*
Referer: https://app.ninox.com/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36 Edg/87.0.664.47
X-FreeScout-API-Key: [api key removed]
</code></pre>
<p dir="auto">Second entry</p>
<pre><code>Request URL: https://ticket.paridata.net/api/conversations/6951
Request Method: OPTIONS
Status Code: 200 
Remote Address: 45.9.61.129:443
Referrer Policy: strict-origin-when-cross-origin
allow: GET,HEAD
cache-control: max-age=0, must-revalidate, no-cache, no-store, private
content-length: 0
content-type: text/html; charset=UTF-8
date: Fri, 04 Dec 2020 08:26:51 GMT
pragma: no-cache
referrer-policy: no-referrer-when-downgrade
server: nginx
strict-transport-security: max-age=15768000
x-content-type-options: nosniff
x-download-options: noopen
x-permitted-cross-domain-policies: none
x-xss-protection: 1; mode=block
:authority: ticket.paridata.net
:method: OPTIONS
:path: /api/conversations/6951
:scheme: https
accept: */*
accept-encoding: gzip, deflate, br
accept-language: de,de-DE;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6
access-control-request-headers: x-freescout-api-key
access-control-request-method: GET
origin: https://app.ninox.com
referer: https://app.ninox.com/
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: cross-site
user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36 Edg/87.0.664.47
</code></pre>
<p dir="auto">So the preflight request is succesful however doesn't respond with any "Access-Control-Allow-XYZ" headers.</p>
]]></description><link>https://forum.cloudron.io/post/20495</link><guid isPermaLink="true">https://forum.cloudron.io/post/20495</guid><dc:creator><![CDATA[paridata]]></dc:creator><pubDate>Fri, 04 Dec 2020 08:34:48 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Thu, 03 Dec 2020 17:26:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paridata" aria-label="Profile: paridata">@<bdi>paridata</bdi></a> Can you test with the latest Freescout package we released?</p>
]]></description><link>https://forum.cloudron.io/post/20436</link><guid isPermaLink="true">https://forum.cloudron.io/post/20436</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 03 Dec 2020 17:26:25 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Thu, 03 Dec 2020 13:17:00 GMT]]></title><description><![CDATA[<p dir="auto">I am not aware of any such caching on Cloudron side. This is a bit hard to test without that plugin.</p>
<p dir="auto">There is a new freescout version coming as well, was released just today. Maybe there were some changes needed as well. I am just building the new app package.</p>
]]></description><link>https://forum.cloudron.io/post/20401</link><guid isPermaLink="true">https://forum.cloudron.io/post/20401</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Thu, 03 Dec 2020 13:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Thu, 03 Dec 2020 13:05:53 GMT]]></title><description><![CDATA[<p dir="auto">After doing the upgrade and specifying the allowed host in the app and clearing the app's cache, I'm still not getting the desired behaviour. Is there some sort of caching happening on the cloudron side? I've tested on my side in an anonymous browser window. As far as I know the ninoxdb app does not intercept/cache the responses from cross origin requests.</p>
<p dir="auto">Can you guys say if the app is doing what it should?</p>
]]></description><link>https://forum.cloudron.io/post/20399</link><guid isPermaLink="true">https://forum.cloudron.io/post/20399</guid><dc:creator><![CDATA[paridata]]></dc:creator><pubDate>Thu, 03 Dec 2020 13:05:53 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Thu, 03 Dec 2020 11:21:51 GMT]]></title><description><![CDATA[<p dir="auto">Hi, Freescout has already implemented the feature. It is installable through the Freescout module store.</p>
]]></description><link>https://forum.cloudron.io/post/20387</link><guid isPermaLink="true">https://forum.cloudron.io/post/20387</guid><dc:creator><![CDATA[paridata]]></dc:creator><pubDate>Thu, 03 Dec 2020 11:21:51 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Wed, 02 Dec 2020 19:40:34 GMT]]></title><description><![CDATA[<p dir="auto">Here‘s the link to the github issue: <a href="https://github.com/freescout-helpdesk/freescout/issues/897" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/freescout-helpdesk/freescout/issues/897</a></p>
]]></description><link>https://forum.cloudron.io/post/20336</link><guid isPermaLink="true">https://forum.cloudron.io/post/20336</guid><dc:creator><![CDATA[paridata]]></dc:creator><pubDate>Wed, 02 Dec 2020 19:40:34 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Wed, 02 Dec 2020 17:18:46 GMT]]></title><description><![CDATA[<p dir="auto">While CORS can be enabled in the reverse proxy, the correct place to do this is in the app itself. The app alone knows if it's API has been designed and tested for Cross Origin use cases. Enabling it without understanding the app will is a security issue. So, I guess this comes down to asking Freescout to add these headers in their responses.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paridata" aria-label="Profile: paridata">@<bdi>paridata</bdi></a> If you report this, can you please link the github issue or support request here? I am happy to chime in.</p>
]]></description><link>https://forum.cloudron.io/post/20333</link><guid isPermaLink="true">https://forum.cloudron.io/post/20333</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 02 Dec 2020 17:18:46 GMT</pubDate></item><item><title><![CDATA[Reply to Enable CORS in Freescout API on Wed, 02 Dec 2020 15:24:02 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome!</p>
<p dir="auto">Not exactly sure how the communication is, but you may want to set CSP config for the app for a start <a href="https://docs.cloudron.io/apps/#custom-csp" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/apps/#custom-csp</a></p>
<p dir="auto">Headers as such should be forwarded normally by the reverse proxy, so if you hit this issue we have to debug this somehow with your setup to fully understand the issue.</p>
<p dir="auto">If Freescout as such does not support CORS then this is an upstream issue with Freescout (or in this case the API addon) Usually we have seen that they are quick to fix issues once reported <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=74f512c8ff7" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
]]></description><link>https://forum.cloudron.io/post/20323</link><guid isPermaLink="true">https://forum.cloudron.io/post/20323</guid><dc:creator><![CDATA[nebulon]]></dc:creator><pubDate>Wed, 02 Dec 2020 15:24:02 GMT</pubDate></item></channel></rss>