security-headers icon indicating copy to clipboard operation
security-headers copied to clipboard

Not working with Inertia

Open sinnbeck opened this issue 1 year ago • 0 comments

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 :)

sinnbeck avatar May 17 '23 07:05 sinnbeck