未验证 提交 a72e8a69 编写于 作者: F Frank Petrilli 提交者: GitHub

Add `use-credentials` to fetch manifest with cookies

I run code-server behind an authenticating Kubernetes Ingress which sets a cookie after a successful login is performed. Since this cookie is not set when fetching the manifest, the fetch fails and gets redirected to the authentication page, breaking code-server completely.

See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link
上级 28c93612
......@@ -61,6 +61,7 @@ module.exports = (options = {}) => merge(
short_name: "Coder",
description: "Run VS Code on a remote server",
background_color: "#e5e5e5",
crossorigin: 'use-credentials',
icons: [{
src: path.join(root, "packages/web/assets/logo.png"),
sizes: [96, 128, 192, 256, 384],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册