Forum Discussion
mdrabkin
8 years agoRegular Visitor
Is it possible to load WebAssembly file from custom visual?
Hi, I'm experimenting with custom visuals development, and was trying to load a .wasm file. Since it requires me to fetch the file, I keep getting cross origin error. I couldn't find anywhere i...
v-viig
8 years agoCommunity Champion
We can not control CORS in Power BI. However, you can upload your wasm files to CDN or another server that supports CORS.
What do mean? Do you want to use a visual outside of Power BI?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
TienSinh
3 years agoFrequent Visitor
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 <URL> 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 !!