Proxy Route Fetch Test

Internal Proxy Result

L

Leanne Graham

[email protected]

USER ID: 1 USERNAME: Bret
{
  "street": "Kulas Light",
  "suite": "Apt. 556",
  "city": "Gwenborough",
  "zipcode": "92998-3874",
  "geo": {
    "lat": "-37.3159",
    "lng": "81.1496"
  }
}

How this works

  • 1 Browser requests /test/proxy-page
  • 2 SSR Server receives request
  • 3 Current page makes internal fetch `GET` to /api/proxy
  • 4 /api/proxy route fetches data from external JSONPlaceholder
  • 5 Data is returned and rendered into HTML