<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged htm</title>
<link>https://overflow.efficy.io/?qa=tag/htm</link>
<description>Powered by Question2Answer</description>
<item>
<title>error when add widget in local: TWidgetRequestHandler - Required Argument not found: &quot;ITEMS&quot;</title>
<link>https://overflow.efficy.io/?qa=4459/error-widget-local-twidgetrequesthandler-required-argument</link>
<description>&lt;p&gt;Hi,&lt;br&gt;
I am in local in efficy 11.2 &lt;br&gt;
I had the following error in the console when I want to press ok to add a widget in local.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Access to XMLHttpRequest at 'https://xxxx.efficytest.com/crm/widget?action=todayadd' from origin 'http://127.0.0.1:1026' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;then I changed my appBase in the custom.js&lt;/p&gt;

&lt;p&gt;and now it shows me another error;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;TWidgetRequestHandler - Required Argument not found: &quot;ITEMS&quot; 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;at this in the Base.js:  &lt;code&gt;errorfunc(msg.replace(/&quot;/g,'&quot;'), det);&lt;/code&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function IsNotEfficyErrorHtml(html, errorfunc) {
if (typeof errorfunc !== 'function') {
errorfunc = (typeof console === 'object' &amp;amp;&amp;amp; typeof console.log === 'function') ? console.log.bind(console) : function () {};
}
var errPos = html.indexOf('&amp;lt;span id=&quot;error-message&quot;&amp;gt;');
var tagPos = html.indexOf('&amp;lt;!--ISEFFICYERROR--&amp;gt;'); // will be -1 if html is a memo where a user copied and pasted the error page, HTML comments do not get copied
if (errPos &amp;gt;= 0 &amp;amp;&amp;amp; tagPos &amp;gt;= 0) {
var msg = html.substring(errPos + 25,html.indexOf('&amp;lt;/span&amp;gt;', errPos + 25)); // = html.match(/&amp;lt;span id=&quot;ErrorMsg&quot;&amp;gt;((.|[\r\n])*)&amp;lt;\/span&amp;gt;/)[1] but IE has regex issues
var detPos = html.indexOf('&amp;lt;div id=&quot;Scrollbox&quot;&amp;gt;', errPos);
var det = (detPos &amp;gt;=0) ? html.substring(detPos + 20,html.indexOf('&amp;lt;/div&amp;gt;', detPos + 20)).replace(/&quot;/g,'&quot;') : '';
if (errorfunc === alert)
msg = msg.replace(/&amp;lt;br&amp;gt;/g,'\n').replace(/[\n\r]+/, '\n');
errorfunc(msg.replace(/&quot;/g,'&quot;'), det);
return false;
}
else {
return true
}
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;any ideas what's wrong ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4459/error-widget-local-twidgetrequesthandler-required-argument</guid>
<pubDate>Thu, 13 Jun 2019 18:04:35 +0000</pubDate>
</item>
</channel>
</rss>