Instagram third party issue

Hello,
I have made an Instagram post-management with the InstagramApiSharp API and Blazor.

When I’m trying to log in, I encounter this message:
Unable to login: No connection could be made because the target machine actively refused it.

Someone told me if on convert it to a browser extension, Instagram lets me log in. What is your opinion? Do you any insight about it?

thanks,
Saeed