-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Request to Remove or Address unsafe-eval
Usage in Yoga Layout
#1767
Comments
I didn’t look closely at this, but it seems to come from Emscripten (possibly embind), so bindings would need to change. |
I have the same issue and it would be amazing to see it resolved ! |
I looked quickly into it and it seems there are no call to The |
Hi Yoga Layout Team,
I am currently using
@react-pdf/renderer
(version^4.1.5
) in my project, which depends onyoga-layout
. During development, I've encountered issues related to the usage ofunsafe-eval
withinyoga-layout
.Problem
The inclusion of
unsafe-eval
poses significant security risks and violates stricter Content Security Policies (CSPs), which are becoming increasingly common in modern web applications. This makes it challenging to useyoga-layout
in secure environments without relaxing CSP rules, which isn't always an acceptable solution.Steps to Reproduce
@react-pdf/renderer
(which usesyoga-layout
) into a project.unsafe-eval
.yoga-layout
.Let me know if additional details, examples, or assistance with refactoring would be helpful. Thank you for all the effort you’ve put into maintaining this essential library!
Best regards,
Michele
The text was updated successfully, but these errors were encountered: