Get client ip on server side

Hello folks,

i need the client ip inside my beforeSSR action (Frontity) to check the geo location. My question now is how i can access the request headers at this point?

Greetings and thank you

Hi @info7

Welcome to the Frontity community.

You can put any JavaScript in the beforeSSR function, so you can use the standard JavaScript Request interface properties.