0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00
astro/.changeset/healthy-planets-dream.md
Guofeng Lin a6916e4402
feat: prefer using x-forwarded-for as clientAddress (#11101)
* feat: change node clientAddress use x-forwarded-for

when

```
adapter: node({
    mode: 'standalone',
  })
```

* feat: prefer using x-forwarded-for as clientAddress

* Update .changeset/healthy-planets-dream.md

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Update .changeset/healthy-planets-dream.md

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>

* Apply suggestions from code review

---------

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-05-22 12:10:56 +01:00

269 B

astro
minor

Updates Astro's code for adapters to use the header x-forwarded-for to initialize the clientAddress.

To take advantage of the new change, integration authors must upgrade the version of Astro in their adapter peerDependencies to 4.9.0.