itsgoingd / clockwork

Clockwork - php dev tools in your browser - server-side component
https://underground.works/clockwork
MIT License
5.7k stars 320 forks source link

Allow filtering requests by method #404

Closed mortenscheel closed 4 years ago

mortenscheel commented 4 years ago

It would be nice to be able to filter requests by method. With cross-origin AJAX requests, clockwork logs every single OPTIONS preflight request, which is kind of meaningless. Maybe these should be ignored except if explicitly included in a config setting.

itsgoingd commented 4 years ago

hey, ability to filter requests by closure is already on the todo list (https://github.com/itsgoingd/clockwork/issues/403)

ignoring pre-flight requests by default makes a lot of sense, adding that one as well. i've never noticed this being an issue with laravel though, are you using the vanilla integration?

mortenscheel commented 4 years ago

I'm using Sanctum for auth on the backend, and the frontend is a SPA on a different subdomain. Hence the cross-origin requests.

itsgoingd commented 4 years ago

i've released clockwork 4.1.6 with support for filtering requests by method (options requests are filtered by default)