FS#71525 - [code][regression] Extensions marketplace doesn't work with Code OSS 1.58.0-1
Attached to Project:
Community Packages
Opened by Vasily Khoruzhick (anarsoul) - Friday, 16 July 2021, 17:18 GMT
Last edited by Toolybird (Toolybird) - Saturday, 27 May 2023, 22:11 GMT
Opened by Vasily Khoruzhick (anarsoul) - Friday, 16 July 2021, 17:18 GMT
Last edited by Toolybird (Toolybird) - Saturday, 27 May 2023, 22:11 GMT
|
Details
Description:
Extensions marketplace doesn't work after upgrading code to 1.58.0-1, it complains "We cannot connect to Extensions Marketplace at this time, please try again later". Downgrading code to 1.56.2-3 fixes the issue. In developer tools (Help->Toggle Developer Tools) you can see: Access to XMLHttpRequest at ‘https://open-vsx.org/vscode/gallery/extensionquery 1’ from origin ‘vscode-file://vscode-app’ has been blocked by CORS policy: Request header field x-market-user-id is not allowed by Access-Control-Allow-Headers in preflight response. Additional info: * package version(s) 1.58.0-1 * config and/or log files etc. N/A * link to upstream bug report, if any Not upstream issue, visual-studio-code-bin 1.58.2 from AUR works just fine. Steps to reproduce: Open code, click on extensions button, type something in search box. |
This task depends upon
The temporary workaround: https://github.com/VSCodium/vscodium/issues/746#issuecomment-881049046
https://github.com/VSCodium/vscodium/pull/774
I think it is not possible to use open-vsx.org without adding a similar patch.
```
# code --version
1.58.0
2d23c42a936db1c7b3b06f918cde29561cc47cd6
x64
```
```
Access to XMLHttpRequest at 'https://open-vsx.org/vscode/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.
```
version:
```
$ code --version
1.58.0
2d23c42a936db1c7b3b06f918cde29561cc47cd6
x64
```
request:
```
POST /vscode/gallery/extensionquery HTTP/1.1
...
Origin: vscode-file://vscode-app
...
```
resonse:
```
HTTP/1.1 200
...
Access-control-allow-origin: vscode-file://vscode-app
...
```