我有一个在http:// localhost:5555上运行的前端应用程序,角度为2
另一方面,我有一个在http:// localhost:8080 /上运行spring boot的后端应用程序,它为我的angular 2应用程序提供REST Api。
从http://localhost:5555/向http://localhost:8080/发送请求也可以。
验证用户的最佳方式是什么,我读了很多文章,但我找不到解决方案。
答案 0 :(得分:0)
您需要在控制器文件
中使用Singleton.hpp
创建跨源