Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

margungijs's avatar

Laravel 11 CORS

I'm making an application using Laravel and I need to change my CORS configuration from "*" to a certain setting because im using HTTPOnly cookies, could someone give me a run-down of how to do this because I tried installing the fruitcake/laravel-cors package, but my application wouldnt budge...

0 likes
1 reply
margungijs's avatar

All good, found it in the documentation.

In case someone else has a problem with CORS configuration the fruitcake/laravel-cors package is outdated - use php artisan config:publish cors instead

Please or to participate in this conversation.