From a72e8a698d1c65877f4515cc8648c29ec6de7046 Mon Sep 17 00:00:00 2001 From: Frank Petrilli Date: Mon, 1 Jul 2019 14:05:35 -0700 Subject: [PATCH] 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 --- scripts/webpack.client.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/webpack.client.config.js b/scripts/webpack.client.config.js index 31ab2a7e..793130fe 100644 --- a/scripts/webpack.client.config.js +++ b/scripts/webpack.client.config.js @@ -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],