<?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: Is it possible to load WebAssembly file from custom visual? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/484842#M14874</link>
    <description>&lt;P&gt;WASM is not supported by pbiviz tools. We're migrating to webpack that can compile WASM&amp;nbsp;pretty&amp;nbsp;well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To load external resource such as JS or WASM a server must support CORS.&lt;/P&gt;
&lt;P&gt;Otherwise, remote connection will be refused by browser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2018 07:26:44 GMT</pubDate>
    <dc:creator>v-viig</dc:creator>
    <dc:date>2018-08-09T07:26:44Z</dc:date>
    <item>
      <title>Is it possible to load WebAssembly file from custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/484522#M14870</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm experimenting with custom visuals development, and was&amp;nbsp;trying to load a .wasm file.&lt;/P&gt;&lt;P&gt;Since it requires me to fetch the file, I&amp;nbsp;keep getting cross origin error.&lt;/P&gt;&lt;P&gt;I couldn't find anywhere in the pbiviz.json a definition to include another resource in the packaging of the custom visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a matter of fact, I couldn't even find a way to load any other blob, not even a regular image (all documentation guide to convert to data-url and use that)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to package the .wasm file somehow, so that I'll be able to fetch it at runtime?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 23:59:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/484522#M14870</guid>
      <dc:creator>mdrabkin</dc:creator>
      <dc:date>2018-08-08T23:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load WebAssembly file from custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/484842#M14874</link>
      <description>&lt;P&gt;WASM is not supported by pbiviz tools. We're migrating to webpack that can compile WASM&amp;nbsp;pretty&amp;nbsp;well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To load external resource such as JS or WASM a server must support CORS.&lt;/P&gt;
&lt;P&gt;Otherwise, remote connection will be refused by browser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 07:26:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/484842#M14874</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-08-09T07:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load WebAssembly file from custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/485551#M14898</link>
      <description>&lt;P&gt;Thank you very much for the response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I know that loading external resources will require the server to enable CORS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the visual is served from app.powerbi.com, I would need to configure powerbi to enable CORS. Is that possible?&lt;/P&gt;&lt;P&gt;Also if there is a way to host the visual ourselves, do you know where I could find some information about it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maxim&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 17:16:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/485551#M14898</guid>
      <dc:creator>mdrabkin</dc:creator>
      <dc:date>2018-08-09T17:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load WebAssembly file from custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/486326#M14921</link>
      <description>&lt;P&gt;We can not control CORS in Power BI. However, you can upload your wasm files to CDN or another server that supports CORS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do mean? Do you want to use a visual outside of Power BI?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;pbicvsupport@microsoft.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 12:28:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/486326#M14921</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-08-10T12:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load WebAssembly file from custom visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/3143017#M41835</link>
      <description>&lt;P&gt;I created a local server on my machine that hosts the .wasm file, but when I try to fetch it from the power bi visual project, it caused an error about CSP `because it violates the following Content Security Policy directive: "default-src &amp;lt;URL&amp;gt; data: blob: 'unsafe-inline' 'unsafe-eval'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.` How can I fix this, please help me !!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 17:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/3143017#M41835</guid>
      <dc:creator>TienSinh</dc:creator>
      <dc:date>2023-03-20T17:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to load a WebAssembly file from custom visual now?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/3247696#M42777</link>
      <description>&lt;P&gt;I am trying to build a custom visual in power bi using a library called IFC.js. I have bundled it using webpack hoping that the .wasm files would get compiled. I have been trying to integrate this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/IFCjs/web-ifc-viewer/tree/master/example" target="_blank"&gt;https://github.com/IFCjs/web-ifc-viewer/tree/master/example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;into the custom visual. So it runs perfectly in the local host but the IFC loader in in this does not load the ifc and gives an error like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;VM7233:70054 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.&lt;/P&gt;&lt;P&gt;falling back to ArrayBuffer instantiation,&lt;/P&gt;&lt;P&gt;VM7233:70045 failed to asynchronously prepare wasm: CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 0d 0a 3c 21 @+0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried a lot of things to resolve this. I suspect it is because power bi is not able to access the .wasm files which are necessary to use the IFC loader from the library.&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 13:26:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Is-it-possible-to-load-WebAssembly-file-from-custom-visual/m-p/3247696#M42777</guid>
      <dc:creator>yashdesai</dc:creator>
      <dc:date>2023-05-22T13:26:35Z</dc:date>
    </item>
  </channel>
</rss>

