-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix CORS error when downloading PDF #62652
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
Conversation
@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] |
@LorenzoBloedow can you fix Lint check? |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-05-23.at.23.10.53.android.movAndroid: mWeb ChromeScreen.Recording.2025-05-23.at.23.12.43.andriod.chrome.moviOS: HybridAppScreen.Recording.2025-05-23.at.23.21.44.moviOS: mWeb SafariScreen.Recording.2025-05-23.at.23.14.23.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2025-05-23.at.23.05.04.web.movMacOS: DesktopScreen.Recording.2025-05-23.at.23.07.41.desktop.mov |
@LorenzoBloedow can you check recordings? They're unable to play |
@hoangzinh Sorry, I messed up the markdown, should be able to play now. |
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.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/lakchote in version: 9.1.51-0 🚀
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.1.51-6 🚀
|
Explanation of Change
We now download the PDF by opening it as an external URL on the first attempt instead of trying to open in the current URL, getting an error, and then trying with an external.
Fixed Issues
$ #61937
PROPOSAL: #61937 (comment)
Tests
For example:
App/src/libs/Environment/Environment.ts
Lines 54 to 56 in d17b700
Offline tests
N/A (We need an internet connection to use this feature).
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
and notonIconClick
)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
Screen.Recording.2025-05-23.at.12.00.52.PM.mov
Android: mWeb Chrome
Screen.Recording.2025-05-23.at.11.47.56.AM.mov
iOS: Native
Screen.Recording.2025-05-23.at.11.54.23.AM.mov
iOS: mWeb Safari
Screen.Recording.2025-05-23.at.11.52.13.AM.mov
MacOS: Chrome / Safari
Screen.Recording.2025-05-23.at.11.44.13.AM.mov
MacOS: Desktop
Screen.Recording.2025-05-23.at.12.05.30.PM.mov
PS: There are a couple of unrelated console errors in the videos.