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 55 < 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'; ">
66 < title > Authenticate: code-server</ title >
77 < 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 ">
99 < link rel ="apple-touch-icon " href ="./static/out/vs/server/src/media/code-server.png " />
1010 < meta name ="apple-mobile-web-app-capable " content ="yes ">
1111 < link href ="./static/out/vs/server/src/media/login.css " rel ="stylesheet ">
Original file line number Diff line number Diff line change 2020
2121 <!-- Workbench Icon/Manifest/CSS -->
2222 < 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 ">
2424 < link data-name ="vs/workbench/workbench.web.api " rel ="stylesheet " href ="./static-{{COMMIT}}/out/vs/workbench/workbench.web.api.css ">
2525 < link rel ="apple-touch-icon " href ="./static-{{COMMIT}}/out/vs/server/src/media/code-server.png " />
2626 < meta name ="apple-mobile-web-app-capable " content ="yes ">
Original file line number Diff line number Diff line change 2020
2121 <!-- Workbench Icon/Manifest/CSS -->
2222 < 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 ">
2424 </ head >
2525
2626 < body aria-label ="">
Original file line number Diff line number Diff line change @@ -296,6 +296,12 @@ export abstract class Server {
296296
297297 switch ( base ) {
298298 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+ }
299305 if ( ! this . authenticate ( request ) ) {
300306 return { redirect : "/login" } ;
301307 }
You can’t perform that action at this time.
0 commit comments