Level 50
Laravel 10 handles CORS automatically. Read More: https://laravel.com/docs/10.x/routing#cors
All CORS settings may be configured in your application's
config/cors.phpconfiguration file
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I making laravel api backend site for vuejs/cli app and I wanted to use https://github.com/fruitcake/laravel-cors package, but I found message :
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
I suppose is it not good to use it for fresh laravel 10 app ? In my app
"laravel/framework": "^10.8",
"php-open-source-saver/jwt-auth": "^2.1"
vuejs/cli has :
"vue": "^3.2.13",
"vue-router": "^4.2.4",
"vuex": "^4.0.2"
"@babel/core": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-service": "~5.0.0",
Which library have I to use on my laravel site ?
Thanks in advance!
Laravel 10 handles CORS automatically. Read More: https://laravel.com/docs/10.x/routing#cors
All CORS settings may be configured in your application's
config/cors.phpconfiguration file
Please or to participate in this conversation.