[英]How do I download a file returned from FastAPI backend using Fetch API at the frontend?
[英]how should I fetch the google api responses, from directly frontend or going through backend?
我正在嘗試找到使用 google API 電話的最佳宮殿。 由於我們在前端使用谷歌地圖,我們可以直接從前端調用服務(距離 API)。 但是我們可以從后端使用這些服務並將響應也發送到前端。
最好的方法是什么? 有什么建議么?
我打賭后端。
您將必須使用 Google API 密鑰,后端是保存秘密的最佳位置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.