API Firebase работает правильно, но не на локальном хосте с службой firebase - PullRequest
0 голосов
/ 20 июня 2020

Я использую Firebase для работы серверной части.

Когда я использую firebase serve, я получаю внутреннюю ошибку сервера, когда пытаюсь выполнить вызов API с моего локального хоста. Вот несколько снимков экрана, вызывающих API с локального хоста и вызывающих его с URL-адреса firebase.

POST call to the login API method from firebase url

POST call to the login API method from localhost

Here I am calling the login method I created in the API and it's working on firebase url and also on my localhost.

When I am trying to get all the todos that I have, on firebase url is working properly, but not on localhost.

POST call to the todos API method from firebase url

POST-вызов метода todos API с localhost

...