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
This commit is contained in:
Frank Petrilli 2019-07-01 14:05:35 -07:00 committed by GitHub
parent 28c93612e6
commit a72e8a698d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -61,6 +61,7 @@ module.exports = (options = {}) => merge(
short_name: "Coder", short_name: "Coder",
description: "Run VS Code on a remote server", description: "Run VS Code on a remote server",
background_color: "#e5e5e5", background_color: "#e5e5e5",
crossorigin: 'use-credentials',
icons: [{ icons: [{
src: path.join(root, "packages/web/assets/logo.png"), src: path.join(root, "packages/web/assets/logo.png"),
sizes: [96, 128, 192, 256, 384], sizes: [96, 128, 192, 256, 384],