LottieFiles / dotlottie-web

Official LottieFiles player for rendering Lottie and dotLottie animations in the web. Supports React, Vue, Svelte, SolidJS and Web Components.
https://developers.lottiefiles.com/docs/dotlottie-player/
MIT License
191 stars 11 forks source link

Post-build errors #334

Closed ruoduan-hub closed 3 months ago

ruoduan-hub commented 3 months ago

Overview

Post-build errors:426.2cce322dfd085e4d.js:21 Refused to connect to 'https://unpkg.com/@lottiefiles/dotlottie-web@0.30.2/dist/dotlottie-player.wasm' because it violates the document's Content Security Policy. ...

Consuming repo

What repo were you working in when this issue occurred?

...

Labels

theashraf commented 3 months ago

@ruoduan-hub, We've discussed self-hosting the WASM file, which should resolve the CSP issue in your web app. You can find more details here: https://github.com/LottieFiles/dotlottie-web/discussions/198

theashraf commented 3 months ago

@ruoduan-hub, I'm closing this issue. Please let me know if the suggested solution in the linked discussion doesn't work for you. Thanks!