<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — JS errors (related to CORS?)]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10442&amp;type=atom" />
	<updated>2023-12-31T03:53:35Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10442</id>
		<entry>
			<title type="html"><![CDATA[Re: JS errors (related to CORS?)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42778#p42778" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2023-12-31T03:53:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42778#p42778</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[JS errors (related to CORS?)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42777#p42777" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[btm4554]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=47583</uri>
			</author>
			<updated>2023-12-29T22:13:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42777#p42777</id>
		</entry>
</feed>
