How to enable CORS in Laravel?

前端 未结 3 1053
无人及你
无人及你 2020-12-20 16:57

I am in Laravel 5.8 - I kept getting this CORS issue

\"\"

I\'ve tried

php artisan make:mi         


        
3条回答
  •  醉梦人生
    2020-12-20 17:46

    Try laravel-cors package that allows you to send Cross-Origin Resource Sharing headers with Laravel middleware configuration.

提交回复
热议问题