Netlify Identity , test on an iphone using an local IP instead http://localhost:8888/ gives me an error

Hey

I’m just wondering what’s the common solution to be able to test on a mobile phone during development and using netlify identity

Basically im connecting my iphone to my mac with a cable. Both devices are using the same wifi. Then i connect to my IP address , example : http://192.168.31.156:8888/
Then I login with netlify identity, on my computer or on my iphone using the IP, and i get this error

It looks like netlify identity And cloud function are not allowing an other URL that http://localhost:8888/

But the only way to access to my localhost on my iphone is by using my IP address, and not by using http://localhost:8888/,

(just to confirm everything is working fine when using http://localhost:8888/,)

Any ideas ?..
Thanks!

:sweat:

What happens when you pass APIUrl option in your config: GitHub - netlify/netlify-identity-widget: A zero config, framework free Netlify Identity widget?

Basically, the API URL would have the value https://your-netlify-subdomain.netlify.app/.netlify/identity.

hey, thanks for you answer

i tried that but unfortunately im now getting an error when opening the identification panel
Failed to load settings from http://localhost:8888/.netlify/functions/identity

I also tried with my domain name(not localhost), and im getting the same

Please check the URL. It is https://your-netlify-subdomain.netlify.app/.netlify/identity and not https://your-netlify-subdomain.netlify.app/.netlify/functions/identity. Also it won’t work with localhost address, I mentioned you need to enter your website address.

Let us know how that goes.

Alright that worked ! Thanks a lot!