laravel 跨域

laravel怎么设置跨域(两种方法) 在前后端分离的项目中,前端请求后端接口时可能会遇到跨域的问题。其中,一个典型的场景是:前端项目运行在 http://localhost:8080,而后端项目运行在 http://localhost:8000,这时候就需要设置跨域。 在 Laravel 中,要设

posted on 2024-01-24 11:03  andydaopeng  阅读(460)  评论(0编辑  收藏  举报