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
I'm testing out this module in a browser extension and get a CSP error because of the Function constructor used in the fragmentPath method here (trips the 'unsafe-eval' source expression for the 'script-src' directive; more info). This prevents me from using the module as-is with my extension's CSP.
In my testing, I was able to just replace that Function constructor:
I'm testing out this module in a browser extension and get a CSP error because of the Function constructor used in the
fragmentPath
method here (trips the 'unsafe-eval' source expression for the 'script-src' directive; more info). This prevents me from using the module as-is with my extension's CSP.In my testing, I was able to just replace that Function constructor:
with this:
Without issue.
Is this a change that would be considered for the module? Or am I missing something that requires the current usage?
Thanks!
The text was updated successfully, but these errors were encountered: