You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compatibility with Content Security Policy without 'unsafe-eval'? #162
I tried to use solid-auth-client.bundle.js to add solid to an existing website that uses Content Security Policy and ran into the error: EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: ...
Obviously the error can be avoided by setting unsafe-eval, but it would be great if this wasn't necessary.
It appears the error is due to Function constructor calls in solid-auth-client dependencies.
The ones I found are:
Thanks for digging into this! I recently did a big dependency update of the mashlib stack but didn't drill down into solid-auth-client. Sounds like I should have, so I made a note of it. I'll try to find time to look into this!
Presumably this issue can now be closed as no longer relevant given that solid-auth-client is now a legacy library and there are other more major security issues?
Activity
josephguillaume commentedon Jul 19, 2020
Just noticed the
@trust/json-documenterrors should be addressed by PR #150michielbdejong commentedon Jul 23, 2020
Thanks for digging into this! I recently did a big dependency update of the mashlib stack but didn't drill down into solid-auth-client. Sounds like I should have, so I made a note of it. I'll try to find time to look into this!
josephguillaume commentedon Jan 31, 2021
Presumably this issue can now be closed as no longer relevant given that solid-auth-client is now a legacy library and there are other more major security issues?