<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: My 'define([&amp;quot;text!./main.css&amp;quot;, &amp;quot;text!./template.html&amp;quot;)' fails after upgrade in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1803609#M14836</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Vegard,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did you find the solution for the issue?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I override useXhr&amp;nbsp; - I got unauthorized exception, when I don't - it tries to load some.html.&lt;STRONG&gt;js &lt;/STRONG&gt;as you've mentioned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Roman&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 18:07:18 GMT</pubDate>
    <dc:creator>romankoba</dc:creator>
    <dc:date>2021-04-28T18:07:18Z</dc:date>
    <item>
      <title>My 'define(["text!./main.css", "text!./template.html")' fails after upgrade to Nov 2019</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1668811#M12197</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We just updated from Qlik Sense from Nov 2018 to Nov 2019. And our extensions in our webapp (external mashup) failed when loading their CSS and HTML files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The extension code line:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;define(["qlik", "text!./main.css", "text!./template.html"], ...&lt;/LI-CODE&gt;&lt;P&gt;Previously loaded:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;/extensions/tooltip/main.css&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;/extensions/tooltip/template.html&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now they load:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;/extensions/tooltip/main.css&lt;STRONG&gt;.js&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;/extensions/tooltip/template.html&lt;STRONG&gt;.js&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously I've missed something that's changed last year.&amp;nbsp; But can anyone help pinpoint what the new way is?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Vegard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1668811#M12197</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2024-11-16T03:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: My 'define(["text!./main.css", "text!./template.html")' fails after upgrade</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1669292#M12202</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25748"&gt;@vegard_bakke&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;There are no, (afaik), known issues between those 2 releases, one of my colleagues pointed that it may be a cross-domain issue. Can you post the console error, if there's any?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/aiham&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 08:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1669292#M12202</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2020-01-27T08:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: My 'define(["text!./main.css", "text!./template.html")' fails after upgrade</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1669640#M12204</link>
      <description>&lt;P&gt;Thank you for your tip! CORS could definitely break the require load.&lt;/P&gt;&lt;P&gt;But the only CORS problem I get is related to /api/v1/csrf-token.&lt;/P&gt;&lt;P&gt;We have two sites. The mashup site: test.feature.company.com,&lt;BR /&gt;and Qlik Sense: test.qlik.company.com.&lt;/P&gt;&lt;P&gt;The requests have:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Origin: test.feature.company.com&lt;/P&gt;&lt;P&gt;And the responses have:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;A&lt;SPAN&gt;ccess-Control-Allow-Origin:&amp;nbsp;&lt;/SPAN&gt;test.feature.company.com&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;The console log is:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Text and CSS load with require.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27509iB34C2A69FAE396DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Text and CSS load with require.png" alt="Text and CSS load with require.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 14:10:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1669640#M12204</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2020-01-27T14:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: My 'define(["text!./main.css", "text!./template.html")' fails after upgrade</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1669654#M12205</link>
      <description>&lt;P&gt;We are overriding useXhr (legacy from v 3.2).&amp;nbsp; May things have change regarding this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our require config:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;config: {
   text: {
      useXhr: function() {
         return true;
      }
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 15:01:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1669654#M12205</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2020-01-27T15:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: My 'define(["text!./main.css", "text!./template.html")' fails after upgrade</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1669674#M12206</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;The console says : `No 'Access-control-allow-origin' header is present` so you probably need to add extra response header in QMC &amp;gt; Virtual proxies &amp;gt; Edit Virtual Proxy &amp;gt; Advanced &amp;gt; Additional response headers -- see&amp;nbsp; here -&amp;gt;&amp;nbsp;&lt;A href="https://support.qlik.com/articles/000044178" target="_blank"&gt;https://support.qlik.com/articles/000044178&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But I don't think Nov 2019 release will allow you to use `*` as value, you will need to specifically add the domain:&lt;BR /&gt;`Allow-Control-Access-Origin:&lt;SPAN&gt;test.feature.company.com&lt;/SPAN&gt;`&lt;BR /&gt;&lt;BR /&gt;The `&lt;SPAN&gt;/api/v1/csrf-token&lt;/SPAN&gt;` call is only needed by Qlik Sense Cloud deployments - it shouldn't be a problem, you can ignore it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps,&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 15:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1669674#M12206</guid>
      <dc:creator>Aiham_Azmeh</dc:creator>
      <dc:date>2020-01-27T15:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: My 'define(["text!./main.css", "text!./template.html")' fails after upgrade</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1670040#M12211</link>
      <description>&lt;P&gt;True, but the error message about the "&lt;SPAN&gt;No 'Access-control-allow-origin' header is present", is regarding the&amp;nbsp;&amp;nbsp;/api/v1/csrf-token call.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(See&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Sense-Integration-Extensions-APIs/mashup-CSRF-access-error-after-upgrade-to-September-2019-release/m-p/1646413#M11773" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Sense-Integration-Extensions-APIs/mashup-CSRF-access-error-after-upgrade-to-September-2019-release/m-p/1646413#M11773&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other requests already have &lt;SPAN&gt;Allow-Control-Access-Origin:&lt;/SPAN&gt;&lt;SPAN&gt;test.feature.company.com.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(You are right about the '*'. But Nov 2018 did not allow&amp;nbsp;&lt;SPAN&gt;Allow-Control-Access-Origin: *, either, as it had started using&amp;nbsp; 'A&lt;/SPAN&gt;ccess-Control-Allow-Credentials: true')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;define(["css!./main.css", "html!./template.html")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This actually loads the CSS, but when Qlik attempts loading the html file, it tries: 'template_unnormalized4'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Vegard&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:20:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1670040#M12211</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2020-01-28T13:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: My 'define(["text!./main.css", "text!./template.html")' fails after upgrade</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1803609#M14836</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Vegard,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did you find the solution for the issue?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I override useXhr&amp;nbsp; - I got unauthorized exception, when I don't - it tries to load some.html.&lt;STRONG&gt;js &lt;/STRONG&gt;as you've mentioned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Roman&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 18:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1803609#M14836</guid>
      <dc:creator>romankoba</dc:creator>
      <dc:date>2021-04-28T18:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: My 'define(["text!./main.css", "text!./template.html")' fails after upgrade to Nov 2019</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1803615#M14837</link>
      <description>&lt;P&gt;Is this for the `text!` entries only?&lt;BR /&gt;&lt;BR /&gt;The text library of requirejs, distrusts cross-site xhrs, unless they end in '.js'. Therefore is adds the '.js'. (Don't ask me why this is a good idea.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Defining useXhr, require loads the correct&amp;nbsp; url, but it does not include cookies. (Your credentials, and most importantly: your Qlik session cookie is dropped.)&lt;BR /&gt;&lt;BR /&gt;Therefore you get unauthorized on the request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in addition to `useXhr`, you need to define `createXhr`.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is what we used one place:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; config: {  
        text: {  
          useXhr: function (url, protocol, hostname, port) {  
            // enable xhr load for all text resources  
            return true;  
          },  
          createXhr: function () {  
            // use withCredentials flag to prevent authentication errors  
            var xhr = new XMLHttpRequest();  
            xhr.withCredentials = true;  
            return xhr;  
          },  
        },  
      }  
 }  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 18:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1803615#M14837</guid>
      <dc:creator>vegard_bakke</dc:creator>
      <dc:date>2021-04-28T18:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: My 'define(["text!./main.css", "text!./template.html")' fails after upgrade to Nov 2019</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1803960#M14876</link>
      <description>&lt;P&gt;that helped, thank you a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Roman&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 19:32:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/My-define-quot-text-main-css-quot-quot-text-template-html-quot/m-p/1803960#M14876</guid>
      <dc:creator>romankoba</dc:creator>
      <dc:date>2021-04-29T19:32:44Z</dc:date>
    </item>
  </channel>
</rss>

