web-bugs
web-bugs copied to clipboard
www.homedepot.ca - site is not usable
URL: https://www.homedepot.ca/cart
Browser / Version: Firefox 106.0 Operating System: Windows 10 Tested Another Browser: Yes Edge
Problem type: Site is not usable Description: Page not loading correctly Steps to Reproduce: When checking out, home depot's website shows "Unknown Error" inspecting the console shows CORS requests blocked because the URL being requested is "https://.homedepot.ca/" (note the leading period)
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://.homedepot.ca/api/cartsvc/v1/carts/56577297-7402-4827-8e0a-79853564ed59. (Reason: CORS request did not succeed). Status code: (null).
Works fine in Edge Chromium.
Browser Configuration
- None
From webcompat.com with ❤️
Thanks for the report, but I'm not able to reproduce the issue. For me the page loads correctly with or without products in the cart.
Tested with: Browser / Version: Firefox Nightly 107.0a1 (2022-10-05), Firefox Release 105.0.2 Operating System: Windows 10 Pro
@herb2k , could you try clearing cache/data/cookies, disable Ad-blocker (if available), or use a clean profile, and check again? Also if there are any changes made to the default settings of the browser (e.g. in about:config) please revert to the default settings.
[qa_40/2022]
Hi There - I did try on a clean installation (deleting the Mozilla folders in the user directories) before and after syncing my bookmarks.
The cart itself works fine, but when you click on "Checkout Now" there is an error... watching on the console you'll see the CORS requests blocked.
Thanks @herb2k for the heads up. I've checked again, and I managed to see the console error after clicking the "Checkout Now" button. I've also checked on Chrome and a similar error is shown there too. Product URL: https://www.homedepot.ca/product/moen-essie-2-handle-4-inch-centerset-bathroom-sink-faucet-tap-in-chrome-drain-and-valve-included-/1001319533
Firefox:
Chrome:
Note: Redirect to "Checkout" page is done both on Firefox and Chrome.
@denschub could you have a look over the provided console log?
[inv_40/2022]
Even with web tracking protection disabled, when I hit Checkout Now, I get the "Unknown Error".
Yes, that's the issue I am seeing. Unsure if related but it console errors report CORS request blocked; these actions work fine in Chrome/Edge.
ping @denschub
[inv_41/2022]
Ran into this yesterday. I think there is some kind of race condition in JavaScript.
To be specific:
loadAppConfig(t = !0, e, n = !1) {
// ...
this.transferState.hasKey(i) ? this.appConfig = this.transferState.get(i, null) : this.http.get(o).toPromise().then(t=>{
this.appConfig = t
}) // ...
The promise that sets appConfig
above needs to be triggered before:
getOrigin() {
const t = this.appConfig.config.subDomain;
return /* ... */ `https://${ t }.homedepot.ca`
}
This call needs to happen after the promise callback, as this.appConfig.config.subDomain
will be populated in there with www
, otherwise it is empty and the problematic request gets generated.
Chrome seems able to consistently "win" the race, though I did end up hitting the error once while stepping through.
@denschub Anything useful from the above findings that might help us?
[inv_02/2023]
Still an issue in 111.0b1 - is this going to be investigated?
@pfak Does the issue still reproduces on the latest Nightly version?
[inv_31/2023]
Unfortunately being unable to reproduce the issue you are experiencing, we cannot help you with it. Please leave a comment with more details, or file a new report and we will gladly investigate this further. This will be closed as Incomplete.
[inv_19/2024]