<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — JS errors (related to CORS?)]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10442</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10442&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in JS errors (related to CORS?).]]></description>
		<lastBuildDate>Sun, 31 Dec 2023 03:53:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: JS errors (related to CORS?)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42778#p42778</link>
			<description><![CDATA[<p>Issue is not with octet stream&nbsp; </p><p>Open your FA/includes/session.inc</p><p>Find the top constant defined SECURE_ONLY as true. It will work . Suppose if it&#039;s true.</p><p>Your ssl May not work. Ask your hosting provider to fix ssl.</p><p>If that&#039;s not a problem. Try open the site with https. It will solve the problem. If still not the site has https.&nbsp; Take screenshot and share it here.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sun, 31 Dec 2023 03:53:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42778#p42778</guid>
		</item>
		<item>
			<title><![CDATA[JS errors (related to CORS?)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42777#p42777</link>
			<description><![CDATA[<p>I run FA for a small side business on a shared hosting server, can&#039;t get into all administrator settings.&nbsp; &nbsp;Not much of a coder</p><p>Was getting &quot;Yellow Triangle&quot; on many pages, anytime I changed a selector (ie customer) </p><p>Apparently they did some server-side upgrade ~ 1 yr ago and the only way I could operate with with javascript off (which is VERY clunky)</p><p>Every XHR from JSHttpRequest&nbsp; returned 403 error</p><br /><p>I solved it today -&nbsp; in theory octet-stream isn&#039;t a whitelisted content type</p><p>Changed the request header to JSON&nbsp; and the issue went away</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xr.setRequestHeader(&#039;Content-Type&#039;, &#039;application/json&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Was&nbsp; &#039;application/octet-stream&#039;</p><br /><p>FYI -<br />The host is running Apache 2.4.58&nbsp; and cpanel 110.0.17</p>]]></description>
			<author><![CDATA[null@example.com (btm4554)]]></author>
			<pubDate>Fri, 29 Dec 2023 22:13:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42777#p42777</guid>
		</item>
	</channel>
</rss>
