GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — Angular SSR route-policy confusion can expose client-only data under public cache headers · Issue #33555 · angular/angular-cli Open Labels area: @angular/ssrgemini-triagedLabel noting that an issue has been triaged by geminiLabel noting that an issue has been triaged by gemini Milestone DescriptionDescriptionAngular SSR can select server-route metadata from one route while Angular Router renders a different route when the request URL contains certain ambiguous path forms. Example: In both cases, a route configured as Minimal ReproductionMinimal configurationimport { RenderMode, ServerRoute } from '@angular/ssr'; export const serverRoutes: ServerRoute[] = [ { path: 'profile', renderMode: RenderMode.Client, headers: { 'Cache-Control': 'private, no-store', }, }, { path: 'profile/public', renderMode: RenderMode.Server, headers: { 'Cache-Control': 'public, max-age=300', }, }, { path: '**', renderMode: RenderMode.Server, headers: { 'Cache-Control': 'public, max-age=300', }, }, ]; The Steps to reproduceRequest the normal client-only route: curl -i \
-H 'Cookie: session=PRIVATE_VALUE' \
http://localhost:4000/profileThe initial HTML does not contain the request-derived value. Request either crafted path: curl -i \ -H 'Cookie: session=PRIVATE_VALUE' \ 'http://localhost:4000/profile;' curl -i \
-H 'Cookie: session=PRIVATE_VALUE' \
http://localhost:4000/profile//publicActual behaviorThe crafted requests can:
Expected behaviorThe route used to select A route configured as Your EnvironmentAnything else relevant?This was previously reported at https://issuetracker.google.com/u/1/issues/518988455 Activity
MetadataMetadataAssigneesLabelsarea: @angular/ssrgemini-triagedLabel noting that an issue has been triaged by geminiLabel noting that an issue has been triaged by gemini TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |