{"version":"2.1.333","anchor":"aws-metadata-requests-follow-redirects-only-within-the-same","canonical_anchor":"aws-metadata-requests-follow-redirects-only-within-the-same","heading":"AWS credential lookups refuse redirects to another address","tier":"notice","area":"Auth","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/aws-metadata-requests-follow-redirects-only-within-the-same","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### AWS credential lookups refuse redirects to another address\n\nWhen fetching AWS credentials, Claude Code now follows at most 20 redirects and stops if one leads to a different origin\n\n**What**\n\nWhen Claude Code fetches AWS credentials from the AWS metadata service, it now handles redirects (replies that send the request on to another address) itself instead of letting them happen automatically:\n\n- It follows at most 20 redirects.\n\n- It stops if a redirect points to a different origin, meaning a different address, protocol or port.\n\nIn either case it stops with the error \"The AWS metadata request was redirected to another origin, or too many times.\"\n\n**Why**\n\nThis is a safety measure. It stops a credential request from being steered to some other server, an attack known as server-side request forgery, which could otherwise expose credentials.\n\n- Area: Auth\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}