<?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 Adding Mime Type using qlik.callRepository in mashup in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Adding-Mime-Type-using-qlik-callRepository-in-mashup/m-p/55818#M833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to using the Repository API and am trying to get rid of some annoying error messages associated with the fonts of type woff2 which come with Bootstrap.&amp;nbsp; Currently, I receive an error in my mashup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="woff2 error.png" class="jive-image image-1" src="/legacyfs/online/198477_woff2 error.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been advised that to remove these, I would need to register the woff2 MIME type, so I have added a couple of lines to my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15228551459578090" jivemacro_uid="_15228551459578090" modifiedtitle="true"&gt;
&lt;P&gt;qlik.callRepository('/qrs/extension/schema','GET').success(function(reply) {&lt;/P&gt;
&lt;P&gt;alert(JSON.stringify(reply));&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;qlik.callRepository('/qrs/mimetype','POST',{"mime":"font/woff2", "additionalHeaders": "header1","binary": false }).success(function(reply) {&lt;/P&gt;
&lt;P&gt;alert(JSON.stringify(reply));&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the first (GET) command works as expected (this was just a test to make sure that I could interact with the Repository API), the second returns an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="callRepository error.PNG" class="jive-image image-2" src="/legacyfs/online/198482_callRepository error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas how to resolve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2018 15:22:51 GMT</pubDate>
    <dc:creator>rbartley</dc:creator>
    <dc:date>2018-04-04T15:22:51Z</dc:date>
    <item>
      <title>Adding Mime Type using qlik.callRepository in mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Adding-Mime-Type-using-qlik-callRepository-in-mashup/m-p/55818#M833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to using the Repository API and am trying to get rid of some annoying error messages associated with the fonts of type woff2 which come with Bootstrap.&amp;nbsp; Currently, I receive an error in my mashup:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="woff2 error.png" class="jive-image image-1" src="/legacyfs/online/198477_woff2 error.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been advised that to remove these, I would need to register the woff2 MIME type, so I have added a couple of lines to my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15228551459578090" jivemacro_uid="_15228551459578090" modifiedtitle="true"&gt;
&lt;P&gt;qlik.callRepository('/qrs/extension/schema','GET').success(function(reply) {&lt;/P&gt;
&lt;P&gt;alert(JSON.stringify(reply));&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;qlik.callRepository('/qrs/mimetype','POST',{"mime":"font/woff2", "additionalHeaders": "header1","binary": false }).success(function(reply) {&lt;/P&gt;
&lt;P&gt;alert(JSON.stringify(reply));&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the first (GET) command works as expected (this was just a test to make sure that I could interact with the Repository API), the second returns an error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="callRepository error.PNG" class="jive-image image-2" src="/legacyfs/online/198482_callRepository error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas how to resolve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2018 15:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Adding-Mime-Type-using-qlik-callRepository-in-mashup/m-p/55818#M833</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-04-04T15:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Mime Type using qlik.callRepository in mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Adding-Mime-Type-using-qlik-callRepository-in-mashup/m-p/55819#M834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to check whether from your machine: &lt;STRONG&gt;Allow Control- Allow Origin&lt;/STRONG&gt;: *&amp;nbsp; .......You install the chrome extension for the same.. Try after wards...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 14:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Adding-Mime-Type-using-qlik-callRepository-in-mashup/m-p/55819#M834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-04T14:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Mime Type using qlik.callRepository in mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Adding-Mime-Type-using-qlik-callRepository-in-mashup/m-p/55820#M835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Sandeep, I don't understand your comment.&amp;nbsp; Are you saying that everyone who views the mashup would have to install a Chrome extension?&amp;nbsp; If so, this is not a viable option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 09:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Adding-Mime-Type-using-qlik-callRepository-in-mashup/m-p/55820#M835</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2018-05-14T09:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Mime Type using qlik.callRepository in mashup</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Adding-Mime-Type-using-qlik-callRepository-in-mashup/m-p/55821#M836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Richard,&lt;/P&gt;&lt;P&gt;That's not viable option. I do agree. Just said to have check that option. As per your screenshot some problem&amp;nbsp; in POST repository call which requires proper authentication.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 08:19:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Adding-Mime-Type-using-qlik-callRepository-in-mashup/m-p/55821#M836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-15T08:19:39Z</dc:date>
    </item>
  </channel>
</rss>

