[CP Staging] Don't include X-Chat-Attachment-Token header for static video thumbnails#40924
[CP Staging] Don't include X-Chat-Attachment-Token header for static video thumbnails#40924
X-Chat-Attachment-Token header for static video thumbnails#40924Conversation
This comment has been minimized.
This comment has been minimized.
|
@hoangzinh Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
web testing gooooood Screen.Recording.2024-04-24.at.20.07.38.mp4 |
tgolen
left a comment
There was a problem hiding this comment.
I think this is probably OK to fix the blocker, but it doesn't feel like this is the full long term solution. This just feels like it's working around the actual problem.
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Reviewer Checklist
Screenshots/Videosweb is above RPReplay_Final1713985320.mp4Android: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
X-Chat-Attachment-Token header for static video thumbnailsX-Chat-Attachment-Token header for static video thumbnails
mountiny
left a comment
There was a problem hiding this comment.
Thanks, I agree with Tim this seems to not address the root cause but its good for deploy blocker fix especially when its not clear what PR caused this
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
[CP Staging] Don't include `X-Chat-Attachment-Token` header for static video thumbnails (cherry picked from commit 771449b)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.4.65-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.65-5 🚀
|
Details
Don't include the
X-Chat-Attachment-Tokenauth header for video thumbnails hosted on Cloudfront. For some reason that I don't fully understand, it makes the image fail to load.I compared requests that fail and work from the Chrome network tab, and the main difference is that when we don't include the auth header, then the request also includes a
sec-fetch-mode: no-corsheader, whereas when we do attach the auth header, that same headersec-fetch-modeis not included in the request. I couldn't find any mention of that header in the codebase, so I think it could be something that ReactNative adds by itself.Fixed Issues
$ #40907
Tests / QA
Offline tests
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop