-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[CP Staging] Don't include X-Chat-Attachment-Token
header for static video thumbnails
#40924
Conversation
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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-Token
auth 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-cors
header, whereas when we do attach the auth header, that same headersec-fetch-mode
is 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop