laravel解決跨域

最新配置與之前不同了,參考github: 1、composer require barryvdh/laravel-cors //github搜搜 barryvdh/laravel-cors 2、在config/app.php中的provider中配置: Barryvdh\Cors\ServiceProvider::class 3、配置跨域 3.1 配置一個api組
相關文章
相關標籤/搜索