Support the ongoing development of Laravel.io →
Security Requests
Last updated 2 years ago.
0

Which Laravel version are you using?
Laravel now supports HTTP OPTIONS verb, so I think you don't need to handle it in your .htaccess.
However, if you're using Route::resource(), it doesn't automatically add an options action afaik, so you may need to add it manually with Route::options().

Last updated 2 years ago.
0

My laravel-cors library tries to handle this: https://github.com/barryvdh/laravel-cors You can also try this generic middleware https://github.com/asm89/stack-cors

Last updated 2 years ago.
0

Hi,

I'm trying to do an API REST with Laravel using the OPTIONS verb and I was wondering for documentation? Which tool do you use? Is it possible to auto-discover the API thanks to the OPTIONS verb?

Thanks

Last updated 2 years ago.
0

How to implement the https://github.com/barryvdh/laravel-cors, no luck!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

bweston92 bweston92 Joined 3 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.