-
Notifications
You must be signed in to change notification settings - Fork 136
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
[Theme] Fix cart requests #4497
Conversation
Thanks for your contribution! Depending on what you are working on, you may want to request a review from a Shopify team:
|
Coverage report
Test suite run success1890 tests passing in 858 suites. Report generated by 🧪jest coverage report action from fa91638 |
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!
It fixes #4510 as well, let's ship this fix 🚀 4510.mp4 |
@montalvomiguelo You can use this version until an official release is out: #4494 (comment) (or use the nightly release listed on NPM) |
WHY are these changes introduced?
Closes #4488
WHAT is this pull request doing?
The h3 utility we were using for headers was removing
accept
header. The cart requests needaccept: application/javascript
(cart/add) andapplication/json
(cart/change) to work in SFR. Since this header was removed, it was responding with either 302 or 401.How to test your changes?
Add an item to cart with and without the changes in this PR.
cc @Shopify/advanced-edits