Frontend End Point POST wrong (Hosted On Netlify)

When I am going to post a call it is working fine locally and I am able to make the access with netlify but once I am hosting the front end app from Netlify the the POST Proxy is getting set to the netlify URL

The hosted URL : https://deploy-preview-14–hungry-lovelace-df4f46.netlify.app/login

One we click on Sign Up and click on Signup then I see the POST method is going to
https://deploy-preview-14–hungry-lovelace-df4f46.netlify.app/register

where I need it to go to https://ns-db-2022.herokuapp.com/register

In local I made it work by adding Proxy: ‘https://ns-db-2022.herokuapp.com’ in the Package.json

But once I host it I am not able to post the call, what should I do ?

Screenshot for the same has been added as well as the above URL it can be done online.

Because of which I am getting 404 error Page not found
enter image description here