Repository: vscode
Issue: extension store show the "fail to fetch"
Labels: triage-needed,stale

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes/No

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.96.4 (user setup)
- OS Version: Windows_NT x64 10.0.22631

Steps to Reproduce:

1. when i use my mobile's wifi,the extension store show the "XHR error",but when i restart my computer,it show me "fail to fetch ". I can use the extension store in my mobile's wifi a weeks ago ,but when i get home it can't use,how to fix?
2. by the way ,i can use the extension store in my home's wifi,it can't use in my mobile's wifi
3. here are the error code
-----------------------------------------------------------------------------------------------------------
 Failed to load resource: net::ERR_FAILED
workbench.desktop.main.js:sourcemap:35   ERR [network] #2: https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery - error POST Failed to fetch
workbench.html:1 Access to fetch at 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' from origin 'vscode-file://vscode-app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1 
        
 Failed to load resource: net::ERR_FAILED
workbench.desktop.main.js:sourcemap:35   ERR [network] #3: https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery - error POST Failed to fetch
workbench.desktop.main.js:sourcemap:35  INFO [perf] Render performance baseline is 12ms
workbench.html:1 Access to fetch at 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' from origin 'vscode-file://vscode-app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1 
        
 Failed to load resource: net::ERR_FAILED
workbench.desktop.main.js:sourcemap:35   ERR [network] #4: https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery - error POST Failed to fetch
workbench.desktop.main.js:sourcemap:35  WARN Settings pattern "issueReporter.*" doesn't match any settings
workbench.desktop.main.js:sourcemap:35  WARN Settings pattern "application.*" doesn't match any settings
workbench.html:1 Access to fetch at 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' from origin 'vscode-file://vscode-app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1 
        
        
Failed to load resource: net::ERR_FAILED
workbench.desktop.main.js:sourcemap:35   ERR [network] #24: https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery - error POST Failed to fetch
workbench.desktop.main.js:sourcemap:35   ERR Failed: Failed to fetch
    at x3e.H (vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1334:42653)
    at async x3e.F (vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1334:39602)
    at async o (vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1334:38567)
    at async x3e.query (vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1334:38853)
    at async pet.queryGallery (vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2430:14638)
    at async Promise.all (index 0)
    at async GLs.Mc (vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2222:21996)
    at async GLs.wc (vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2222:13932)
    at async vscode-file://vscode-app/d:/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2222:12294
workbench.html:1 Access to fetch at 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' from origin 'vscode-file://vscode-app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
marketplace.visualstudio.com/_apis/public/gallery/extensionquery:1