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
mWeb - Error message displayed when trying to upload document on onfido flow and user is redirected to Company step #6085
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Ah, after some poking around @roryabraham and I figured out that it's actually the browser blocking the request to upload the ID picture to this endpoint.
If you're wondering why I have a screenshot of the Network tab from the Desktop version of Chrome (even though this is a mobile web issue): Onfido only allows us to upload documents from a mobile client. However Onfido doesn't actually check the user-agent–their JS just checks the screen size–meaning we can reproduce this on any browser.
@justinpersaud Looks like this has to do with the CSP we've enabled for staging. Do you think it's safe to get rid of this deploy blocker?
index.js:26 Refused to load the script 'https://www.woopra.com/track/ce/?ra=rkQQmI5tHL4a&alias=onfido-js-sdk.com&instance=onfidojssdkwoopra&ka=24000&meta=&screen=375x812&language=en-US&app=js-client&referer=&idle=0&vs=r&cookie=e7m1bmxiirrV&event=started%20flow&cv_sdk_version=6.8.0&cv_client=staging.new.expensify.com&ce_is_custom_ui=true' because it violates the following Content Security Policy directive: "script-src 'self' https://polyfill.io https://cdn.plaid.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
...
...
Refused to connect to 'https://api.onfido.com/v3/documents' because it violates the following Content Security Policy directive: "connect-src 'self' https://*.pusher.com wss://*.pusher.com https://*.pusherapp.com https://staging-secure.expensify.com https://www.expensify.com wss://sync.onfido.com https://telephony.onfido.com blob:".
...
Refused to connect to 'https://sentry.io/api/109946/store/?sentry_key=6e3dc0335efc49889187ec90288a84fd&sentry_version=7' because it violates the following Content Security Policy directive: "connect-src 'self' https://*.pusher.com wss://*.pusher.com https://*.pusherapp.com https://staging-secure.expensify.com https://www.expensify.com wss://sync.onfido.com https://telephony.onfido.com blob:".
Activity
MelvinBot commentedon Oct 27, 2021
Triggered auto assignment to @jasperhuangg (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.OSBotify commentedon Oct 27, 2021
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:roryabraham commentedon Oct 27, 2021
@jasperhuangg Did you mean to close this?
roryabraham commentedon Oct 27, 2021
I'm assuming that was a mistake because this was closed without a comment or PR, reopening.
kavimuru commentedon Oct 27, 2021
@jasperhuangg @roryabraham Adding video for the above bug.
20211027_183524.mp4
roryabraham commentedon Oct 27, 2021
@kavimuru Can you confirm the account(s) you used to test this? kavi.utest+chatd@gmail.com ?
roryabraham commentedon Oct 27, 2021
Logs don't appear to reveal much 😕 :
9 remaining items
jasperhuangg commentedon Oct 27, 2021
Also unrelated but this deploy blocker isn't showing up in my K2
jasperhuangg commentedon Oct 28, 2021
Ah, after some poking around @roryabraham and I figured out that it's actually the browser blocking the request to upload the ID picture to this endpoint.
If you're wondering why I have a screenshot of the Network tab from the Desktop version of Chrome (even though this is a mobile web issue): Onfido only allows us to upload documents from a mobile client. However Onfido doesn't actually check the user-agent–their JS just checks the screen size–meaning we can reproduce this on any browser.
@justinpersaud Looks like this has to do with the CSP we've enabled for staging. Do you think it's safe to get rid of this deploy blocker?
marcaaron commentedon Oct 28, 2021
Let's fix the CSP issue, retest, then remove the blocker?
roryabraham commentedon Oct 28, 2021
More details on the CSP errors:
justinpersaud commentedon Oct 28, 2021
Let's fix it instead of just pushing to production. CSP was never enabled in production yet, and is on hold right now.
It can be updated here https://github.com/Expensify/Cloudflare-Workers/blob/master/new.expensify.com/wrangler.toml#L12
roryabraham commentedon Oct 28, 2021
Got a PR up to hopefully fix this:
https://github.com/Expensify/Cloudflare-Workers/pull/15
It's approved, but we need it to be merged and deployed by ring0 before we can retest.
roryabraham commentedon Oct 28, 2021
Reopening for testing
roryabraham commentedon Oct 28, 2021
Verified this is fixed, closing this out 🎉
marcaaron commentedon Oct 28, 2021
Thanks @roryabraham !! 🙇♂️
bondydaa commentedon Oct 28, 2021
I think this was from Jasper testing this before the fix was out right? https://github.com/Expensify/Expensify/issues/182916
roryabraham commentedon Oct 28, 2021
Yep, looks like it