janboddez / laravel-webmention

Have your Laravel app accept and send webmentions
MIT License
2 stars 0 forks source link

Somehow remove reference to HTTP_CF_CONNECTING_IP #1

Open janboddez opened 2 years ago

janboddez commented 2 years ago

There's "hardcoded" (I mean, it is, but it falls back to Laravel's default Request::ip()) HTTP_CF_CONNECTING_IP header referenced in there somewhere.

Ideally, implementers would be able to override IPs themselves.

janboddez commented 2 years ago

Could use X-Forwarded-For, which isn't exactly the same but can be made to work, too: https://developers.cloudflare.com/fundamentals/get-started/reference/http-request-headers/#x-forwarded-for