localhost OAuth callback

Is there a way to specify local host as url for callback? Seems like application registration does not allow it for private apps.

I’m wondering if there is a nice way to have it. I cannot send the callback to my server at the cloud as it is protected by authentication and does not accept not authorized traffic.

Thanks in advance