我都成功左,不過唔知點解preflight request果下會話No allow access control headers 500左, 之後actual request 就成功有response from backend.
想知frontend axios post 段code 洗唔洗加headers section?
我係上面果位flask + vue
咕狗2024-04-05 12:50:27
I am not familiar with flask, but reminded that CORS usually should run in some kind of middleware and when handling the OPTIONS request, check carefully that you DO NOT execute your actual business logic.
IT狗的自我修養2024-04-05 13:07:46
佢太鍾意改野
同埋好多歷史原因既 product
能樣穿梭機2024-04-05 16:11:47
三鋒2024-04-08 10:38:42
都係用返express 算,完全冇問題,flask 唔識set
咕狗2024-04-08 10:52:24
I heard that hono is much faster than express. And if you want to try python as API backend, i heard FastAPI is good
熊途末路2024-04-08 11:29:48
終於見到連燈有愛
唔係左屌右屌 話你唔識野
咁簡單google都搵到
點解唔用乜乜乜
ぱないの2024-04-08 13:18:25
分享知識 > 屌人唔識
れんげ2024-04-08 15:28:21
返工另計, 返工一定係玩knowledge hoarding 反正大家已經玩緊, can't beat them, join them 工程師應該放心大膽地創造技術負債