when I hithttp://localhost:4200 or http://localhost:4200/forgotPasswordEmail on my local environment, it works correctly.
Opening the index-page on my production environment and clicking a link to go to another page, also works. However, when I refresh the page or go directly to http://<prod url>/forgotPasswordEmail
, it doesn't work and then I get the following error:
I guess that when I hit the URL, it's trying to search the rest API code for forgotPasswordEmail
and it's not able to find the
value so it's returning 401 but locally it's working fine.