Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix eval if function passed instead of string function #2998

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

yoni12ab
Copy link

when using in CSP header the unsafe-eval property Lottie fail to load
see:
#2927
so this pr lets you send in 'animationData' x property function not only a string function as today

example for using the function:
https://stackblitz.com/edit/typescript-xm1gpw?file=lottie.ts
added an npm library with the change @sentinel-one/lottie-web-no-eval

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant