Skip to content

Commit a72e8a6

Browse files
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
1 parent 28c9361 commit a72e8a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/webpack.client.config.js

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

0 commit comments

Comments
 (0)