File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 5
5
< meta http-equiv ="Content-Security-Policy " content ="default-src 'none'; style-src 'self' 'unsafe-inline'; script-src 'unsafe-inline'; manifest-src 'self'; img-src 'self'; ">
6
6
< title > Authenticate: code-server</ title >
7
7
< link rel ="icon " href ="./static/out/vs/server/src/media/favicon.ico " type ="image/x-icon " />
8
- < link rel ="manifest " href ="./static/out/vs/server/src/media/ manifest.json " crossorigin ="use-credentials ">
8
+ < link rel ="manifest " href ="./manifest.json " crossorigin ="use-credentials ">
9
9
< link rel ="apple-touch-icon " href ="./static/out/vs/server/src/media/code-server.png " />
10
10
< meta name ="apple-mobile-web-app-capable " content ="yes ">
11
11
< link href ="./static/out/vs/server/src/media/login.css " rel ="stylesheet ">
Original file line number Diff line number Diff line change 20
20
21
21
<!-- Workbench Icon/Manifest/CSS -->
22
22
< link rel ="icon " href ="./static-{{COMMIT}}/out/vs/server/src/media/favicon.ico " type ="image/x-icon " />
23
- < link rel ="manifest " href ="./static-{{COMMIT}}/out/vs/server/src/media/ manifest.json " crossorigin ="use-credentials ">
23
+ < link rel ="manifest " href ="./manifest.json " crossorigin ="use-credentials ">
24
24
< link data-name ="vs/workbench/workbench.web.api " rel ="stylesheet " href ="./static-{{COMMIT}}/out/vs/workbench/workbench.web.api.css ">
25
25
< link rel ="apple-touch-icon " href ="./static-{{COMMIT}}/out/vs/server/src/media/code-server.png " />
26
26
< meta name ="apple-mobile-web-app-capable " content ="yes ">
Original file line number Diff line number Diff line change 20
20
21
21
<!-- Workbench Icon/Manifest/CSS -->
22
22
< link rel ="icon " href ="./static/out/vs/server/src/media/favicon.ico " type ="image/x-icon " />
23
- < link rel ="manifest " href ="./static/out/vs/server/src/media/ manifest.json " crossorigin ="use-credentials ">
23
+ < link rel ="manifest " href ="./manifest.json " crossorigin ="use-credentials ">
24
24
</ head >
25
25
26
26
< body aria-label ="">
Original file line number Diff line number Diff line change @@ -296,6 +296,12 @@ export abstract class Server {
296
296
297
297
switch ( base ) {
298
298
case "/" :
299
+ switch ( requestPath ) {
300
+ case "/manifest.json" :
301
+ const response = await this . getResource ( this . serverRoot , "media" , requestPath ) ;
302
+ response . cache = true ;
303
+ return response ;
304
+ }
299
305
if ( ! this . authenticate ( request ) ) {
300
306
return { redirect : "/login" } ;
301
307
}
You can’t perform that action at this time.
0 commit comments