-
Notifications
You must be signed in to change notification settings - Fork 226
Crash "Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' https://www.apple.com https://appleid.cdn-apple.com "." #200
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
Comments
Stacks like this:
are usually the firebase test lab automatically crawling your app (literally just touching everywhere like an uneducated monkey) on every app release published in the Google Play Store unless you opt out. What's cool though is that they also post logcat and video etc. so you can see it and get more details I don't see a single stack frame in your crash trace that points to this module though, so without more detail (and ideally a minimal reproducible example https://stackoverflow.com/help/minimal-reproducible-example) I'm going to close this as "no evidence it was this module" |
We are seeing something similar coming from our app's Cordova implementation (using cordova-sign-in-with-apple). It is only affecting certain device types but they all explode with a CSP failure that seems to be stemming from Apple's OAuth flow content. |
This may be another use case (for our module) of replacing android auth with a WebView-based auth like #166 - @booleanbetrayal not sure how to map the idea of react-native-webview on to cordova but surely there is a webview wrapper, and if so that approach may work for you as well. PR #166 has sat for a while here but it is a lack of review + merge time, not a quality issue I don't think, the approach seems great. |
Super late to the party here, but we just got this error: They shared this video to show how they got it. Essentially they click around enough and they get to a point that the webview crashes. Not sure how actionable it is video.mp4 |
Interesting - that looks like the test monkey (I say that nicely, I think it is their actual name!) that play store runs automated against new app submissions? Had that look to it. Not sure what we can do about that other than perhaps #166 which is still languishing unfortunately |
Got same error in Crashlytics. How can we avoid it? |
Use this API from react-native-firebase https://rnfirebase.io/app/utils#test-lab |
Get the same error in the Android application when loading URL in webview. So, how can I avoid it? |
@HardikKotadiya16 probably by taking note of the comment thread here and trying the strategy just above your comment? |
I 'am getting the same error on android 10 Samsung S20 5G devices. Any solution ? |
@SERCHAT I don't see one posted. Happy to merge any PR that seems reasonable / is backed by experimental evidence that it isolates the problem and fixes it |
Just received a crash on crashlytics that I believe it's related to this module (v.2.1.0)
This is the trace (device GCE x86 phone, Android 9)
The text was updated successfully, but these errors were encountered: