security-headers
security-headers copied to clipboard
Not working with Inertia
It seem to not work with Inertia. All classes are type hinted to return Illuminate\Http\Response
. The problem is that Inertia mostly returns JsonResponse
instead which does not extendIlluminate\Http\Response
, but instead Symfony\Component\HttpFoundation\Response
.
I assume type hinting Symfony\Component\HttpFoundation\Response
instead would fix all errors. Let me know if you want me to do a PR for this :)