Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何让烧瓶 api 和 angular 应用程序在同一个网络服务器上运行?现在我被困在一台服务器上运行flask-api和一个单独的节点网络服务器上的角度应用程序(使用角度种子项目)。这似乎不太理想。
我目前处于开发阶段,但我正在使用类似的堆栈。你是对的烧瓶需要在不同的端口上使用,但只需用“(”“)”包装你的api响应。这样您就可以在 angular.js 上接受 JSONP 并使用烧瓶 api 响应。